This problem easy can be solved by such trick:
- pick some amount of global datas, up to 24 byte;
- declare their as external __data .......;
- write sourse file "xxx.C" with #include <compiler_defs.h> and abovementioned
data declaration(s);
- add this sourse file to project.
Example:
file Gap_datas.c:
#include <compiler_defs.h>
__data S16 main_array[12];
<EOF>
main file:
#include <compiler_defs.h>
#include <...>
#define ....
extern __data S16 main_array[12];
main()
{
U16 i;
for (i = 0; i < 12; i++ )
main_array[i] = i*i;
for (i = 0; i < 12; i++)
printf_fast(" main_array[%02u] = %03u\n", i, main_array[i]);
}
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user