Hello Catalin, Can you please try again with --print-search-dirs and also examine if the library dirs exist and what they contain?
You should not need to use -llibsdcc.lib Can I assume that you're running linux? Maarten > Hello. > > I am still fighting to compile Contiki-OS for mcs51. > > I found out that olso a simple example does not work. > > So, using a trivial C program (int a; a = 1; return 1) I am getting this: > > Working: > sdcc --fverbose-asm --model-small --stack-auto cata.c -llibsdcc.lib > > Not working: > $ sdcc --fverbose-asm --model-large --stack-auto cata.c -llibsdcc.lib > ?ASlink-Warning-Undefined Global '__mcs51_genRAMCLEAR' referenced by > module 'cata' > ?ASlink-Warning-Undefined Global '__mcs51_genXINIT' referenced by module > 'cata' > ?ASlink-Warning-Undefined Global '__mcs51_genXRAMCLEAR' referenced by > module 'cata' > ?ASlink-Warning-Undefined Global '__sdcc_gsinit_startup' referenced by > module 'cata' > > Doing a diff between libs: > > --- large-stack-auto/mcs51.lib 2013-09-10 16:48:06.000000000 +0300 > +++ small-stack-auto/mcs51.lib 2013-09-11 11:05:26.742689565 +0300 > @@ -1,5 +1,6 @@ > !<arch> > -crtstart.rel/ 1378820886 0 0 100644 691 ` > +/ 1378886716 0 0 0 518 ` > +[binary stuff deleted]__mcs51_genXRAMCLEAR[binary stuff deleted] > > So, for large model, it seems that __mcs51_genXRAMCLEAR is not included in > lib. > > Do you know a reason why? > > Thank you! > > -- > Catalin Boie > ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and globalize service processes across IT 3. Implement zero-touch automation to replace manual, redundant tasks http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user