Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
IWRAM code overlays?   Message List  
Reply | Forward Message #12307 of 15019 |
Re: [gbadev] IWRAM code overlays?

There is support in Jeff's linkscript for overlays.

Segments .iwram0 through .iwram9 form overlays in IWRAM.
Segments .ewram0 through .ewram9 form overlays in EWRAM.

__iwram_overlay_lma and __ewram_overlay_lma are symbols
defined by the Linkscript to be the start of the overlay area in RAM.
You would need symbols in your overlay code to define start and stop
addresses for the overlays to know what to copy in for a particular
overlay. The Linker will automatically size the overlay area to the
minimum necessary size (largest of the individual overlays).

I've not used this myself, but the support in the linker/linkscript is
definitely there.

- John







Thu Aug 1, 2002 4:51 pm

johnse98072
Offline Offline
Send Email Send Email

Forward
Message #12307 of 15019 |
Expand Messages Author Sort by Date

Has anybody figured out how to do an IWRAM code overlay? For instance, if I want to devote only 4 KB of IWRAM to code, but I have 40 KB of code that wants to...
yerricde
Offline Send Email
Jul 31, 2002
8:13 am

You should be able to get gcc to create 4K "overlay objects" BUT you will not be able to link directly to the other code by doing this : compile your file,...
Mike Wynn
mike.wynn@...
Send Email
Aug 1, 2002
4:04 pm

There is support in Jeff's linkscript for overlays. Segments .iwram0 through .iwram9 form overlays in IWRAM. Segments .ewram0 through .ewram9 form overlays in...
John Seghers
johnse98072
Offline Send Email
Aug 1, 2002
4:55 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help