-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z80asm: cannot specify name of generated object file #16
Comments
from: Paulo Custodio pauloscustodio@gmail.com The line you refer was recently introduced to support the consolidated object file; the -o option for naming the binary is used to name the consolidated object, which is produced at the link phase by reading all the object files from the input assembly files. As z80asm does process a list of asm files in one go, e.g. to link a binary or build a library, the object file has to be determined from the source name. The problem you mention: could it be solved by passing an extra -I option to z80asm with the original source directory of the source? |
from: alvin (alvin_albrecht@hotmail.com) lists@suborbital.org.uk via lists.sourceforge.net
But yes that can be done. There is a second issue with this where we've already created the include path string that is properly sequenced in the order the user wants. So adding a new include path at the point of assembling won't necessarily honour that sequence without some other changes. |
The suggested solution was applied in zcc, that is the user's asm file is copied to the temp directory and then is assembled to object file with the path to the original location added at the end of z80asm's include path list. But as you say, this may mess with the user's intended path search order. |
The current z80asm also has already this solution in place: the directory of the main assembly file, i.e. the one mentioned in the command line, is appended to the end of include path before parsing the file and removed afterwards. This allows relative include paths out-of-the-box. |
Issue solved with the introduction of consolidated object files:
-Otest.dir creates all object files in that directory. |
from: alvin (alvin_albrecht@hotmail.com) lists@suborbital.org.uk via lists.sourceforge.net
to: z88dk-developers@lists.sourceforge.net
date: Sun, Oct 23, 2016 at 9:03 AM
When assembling to a single object file there is no way to control the output filename.
will always generate thing.o
I'd like to be able to do this:
Line 39 of options_def.h hints that this was considered but never implemented:
Because z80asm will search for includes from the .asm file's location, zcc needs to assemble .asm source files in their original source directories and we don't want to pollute the source directories with temporary files.
The text was updated successfully, but these errors were encountered: