This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Generating code to execute from ROM?


How do you generate code suitable for execution out of ROM with GCC?  The 
main thing
is that I need a way to link the addresses for initialized data at one location
and put the actual initialization data in another location in such a way that
crt0 can figure out how to copy the initialized data from ROM to RAM.

I suppose there are a lot of ways to do this.  I've seen embedded C compilers
generate code this way or it can be done by a clever linker, etc.  I can't
figure out how to do it with GCC...

thanks,
jeff

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]