This is a summary page for all the c source related information otherwise spread over the zasm documentation.
Related Differences from v3 to v4: Command line options Command Line Options Command Line Options: Command line optionscommand line options
-Command Line Options: -c /path/to/cc Command line options for C compiler: -c /path/to/ccc path/to/cc Pseudo instructions: defl, set and '=' Labels: SETset path to c compiler (default: sdcc in $PATH)
-Command Line Options: -t /path/to/dir Command line options for C compiler: -t /path/to/dirt path/to/dir Pseudo instructions: defl, set and '=' Labels: SETset path to temp dir for c compiler (default: output dir)
-Command Line Options: -I /path/to/dir Command line options for C compiler: -I /path/to/dirI path/to/dir Pseudo instructions: defl, set and '=' Labels: SETset path to c system header dir (default: sdcc default)
-Command Line Options: -L path/to/dir Command line options for C compiler: -L path/to/dirL path/to/dir Pseudo instructions: defl, set and '=' Labels: SETset path to standard library dir (default: none)
Related assembler directives
Assembler directives: #include Including C Source Files: #include#include
#include: #include library #include: #include library#include library
Assembler directives: #cpath Including C Source Files: #cpath#cpath
Assembler directives: #cflags Including C Source Files: #cflags#cflags
Assembler directives: #target Including C Source Files: #target#target, #code and #data
Assembler directives: #local, #endlocal, .local and .endlocal Pseudo instructions: #local, #endlocal, .local and .endlocal Including C Source Files: #local, #endlocal, .local and .endlocal#local and Assembler directives: #local, #endlocal, .local and .endlocal Pseudo instructions: #local, #endlocal, .local and .endlocal Including C Source Files: #local, #endlocal, .local and .endlocal#endlocal
#insert: Examples: #assert: Example: incbin: Examples: #assert: Example:Example sources:
Examples/template_rom_with_c_code.asm
Test/test-tap.asm
include/ and lib/ directory Note: the supplied sdcc/lib/ directory requires sdcc 3.4.1.
sdcc/include/
sdcc/lib/
Interesting reading
sdcc_info.txt
sdcc manual.pdf
|