init code

dreese@vandals.uidaho.edu dreese@vandals.uidaho.edu
Wed Jun 11 17:39:00 GMT 2008


Does gcc currently posses the functionality to do the following?

I would like to have gcc compile in a function that initializes a global variable into the target programs memory space. I need this initialization function to be called before any code is executed from the target program. I need to have gcc do this for every program that it compiles with out being asked. 

Does anyone have any ideas?

Thanks for your time.
Dale Reese



More information about the Gcc-help mailing list