| back |  | Last regenerated: 2022-04-20 17:31:36 kio

# zasm - Z80 Assembler – Version 4.4

# Including C Source Files

[<prev] [next>]

| ### Command line options for C compiler ##### -c /path/to/cc Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif If you include c sources and Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif if the c compiler cannot be found in your $PATH or Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif if you want to use a different one, then you can tell the assembler which executable to use for compiling c sources. Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif If a partial path is used then your current working directory applies. ##### -t /path/to/dir Define the directory to use for temporary files. The only temp files created by zasm are those generated by the c compiler which will be stored in subdirectory 's/' inside this filder. The default location is the output file's directory. Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif If a partial path is used then your current working directory applies. ##### -I /path/to/dir Define the path to system header files for the c compiler. Normally the c compiler already knows where they are, but Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif if you want to use a different directory or Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif if your headers just are not in the standard location, you can use this option. It will pass two arguments to the c compiler:
    /bin/sdcc --nostdinc -Command Line Options: -I /path/to/dir
    Command line options for C compiler: -I /path/to/dirI/path/to/dir
The first one tells it to forget about the standard location for header files and the second one tells it where they actually are. Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif If a partial path is used then your current working directory applies. Note: include directories can also be added with the assembler directive Assembler directives: #cflags Including C Source Files: #cflags#CFLAGS in your source file. There a partial path refers to the source file's directory! Note: mind the space! ##### -L path/to/dir Define the path to the system's library directory. This directory is used by zasm to resolve missing symbols in assembler directive 'Assembler directives: #include Including C Source Files: #include#include system library'. The default location is derived from the include directory path. Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif If the include directory path was not specified on the command line then the library path must be specified or 'Assembler directives: #include Including C Source Files: #include#include system library' won't work. But you still can hard code the path in the Assembler directives: #include Including C Source Files: #include#include statement. Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif If a partial path is used then your current working directory applies. Note: mind the space! |

[<prev] [top] [next>]