Hi folks,

I'd like to move certain functions to near the beginning of my memory space.  Is there a way to do this with SDCC?  I'm thinking of a special function attribute telling them to go into a certain segment or something.  I haven't found it in the manual yet.

For background information, the reason I'm doing it is because my firmware-upgrade-over-usb tool has a critical window during flash upgrade when the device is vulnerable to disconnects because the startup code is getting overwritten.  I'd like to reduce this vulnerability window by placing all my critical startup functions at the beginning of the firmware.  I'm using the usb-enabled Silabs C8051F320.

Thanks,
Berwyn

--
Check out our winning design in this Bronchoscope Simulator for AirwaySkills ( TVNZ coverage or radio ).

Berwyn Hoyt, Electronic Solutions & Business  --  Brush Technology
Ph: +64 3 741 1204     Mobile: +64 21 045 7830
Web: brush.co.nz

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to