Hi, you need to have special linker scripts for bootloader, main module, expansion module etc. There are some examples for bootloader and bootloaderless apps in gputils distribution.
Vaclav > ---------------------------------------- > Hi! > > I have to write a program, what consists of a bootloader, a main module, > and an expansion module. Modules can be upgraded via UART. Preferably, > the expansion module should be upgraded only, but the other would be > reasonable as well. > > I don't know how to handle this situation, since the code is > placed/arranged by the linker, not the compiler. > > How can I force what to goes where? > > The expansion module would consists several functions and more > variables, that tha main uses. There would be a some callback functions > to process the additional parameters (these are defined at the start of > the expansion module). > > Can somebody offer me a solution of handling the expansion capability? > > > Theblond ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user