$ sdcc -V -mz80 -o crap.ihx main.rel junk.rel
+ "/usr/local/bin/sdldz80" -nf "crap.lnk"
Also: putting code in specific address/section.
compilation & assemble:
sdcc -mmcs51 --model-small -c src1.c --codeseg src1_codeseg ----> Defines a user defined code segment "src1_codeseg"
Linking:
sdcc -mmcs51 --model-small src1.rel -Wl -bsrc1_codeseg=0x0800 ---> Specify the location of segment.
The other functions in this segment will follow the func1(). If you do not wish this, let func1() alone be the function in src1.c
No comments:
Post a Comment