gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > How to insert a table of data at a specific rom location

#47957 - Haris - Fri Jul 15, 2005 10:05 am

Hi All,

I'm relative new to C programming.
I would like to insert my data (array or structure format) at a specific rom location. Then i'll use pointer to access that location to obtain its data.
The problem i encounter is how to specific the structure constant to that location in ARM.
Example would be great. Thanks.

#47967 - tepples - Fri Jul 15, 2005 1:08 pm

Usually you let the linker handle placing data in ROM, and you use 'bin2s' or a similar tool to convert a binary file into assembly language code that you compile.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.