This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

compiler/assembler switches to place output in alternate build directory

We wish to have all our generated output placed in a different directory than the source directory, and to ensure that no generated files get created in our source directory.


The command line help for the compiler v5.2.3 (as well as SPRU514c section 2.3.8) says:

Directory Specifier Options:
  --abs_directory,-fb=dir      Absolute listing directory (default is .obj dir)
  --asm_directory,-fs=dir      Assembly file directory (default is .)
  --list_directory,-ff=dir     Listing/xref file directory (default is .obj dir)
  --obj_directory,-fr=dir      Object file directory (default is .)
  --temp_directory,-ft=dir     Temporary file directory (default is .)

Great. But I'm looking for the same type of info for the assembler, and I can't seem to find anything about it (SPRU513c)

What do I need to specify for asm2000?

  • You can use the compiler shell cl2000 to build assembly source files.  The --asm_directory option is not relevant for assembly source, only C source.  But the rest of those options will work as you expect.

    Thanks and regards,

    -George

     

  • Georgem said:

    You can use the compiler shell cl2000 to build assembly source files.

    We tried that once, and had problems with memory model incompatibility, so I gave up and kept using "asm2000".

    I finally traced down the problem to the "-mf" option in asm2000 translating to the "-ml" option in cl2000. Both are equivalent to "--large_memory_model" (which is the better alternative anyway), so after that fix it works fine.

    thanks.