Skip to content
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

Compile built-in functions #2383

Closed
dikdom opened this issue Aug 22, 2023 · 2 comments
Closed

Compile built-in functions #2383

dikdom opened this issue Aug 22, 2023 · 2 comments
Labels

Comments

@dikdom
Copy link
Contributor

dikdom commented Aug 22, 2023

Hello,
I have a short (but very informative) discussion with @feilipu under his z88dk-libraries repo.
My last two question remained unanswered, could someone pls help me out here/there? (feilipu/z88dk-libraries#2 (comment))

  • is the IX register usage silently replaced with IY during compile/link time when the -mz80_ixiy switch used or an intermediate asm file is generated here also?
  • is there a way to make the zcc (or its used compiler/linker/etc..) to keep this intermediate .asm file (even in tmp dir) and leave there after a successful build?
@suborb
Copy link
Member

suborb commented Aug 24, 2023

Sorry, I'm having a slightly busy week.

It's a silent switch made at assembly time (with a 0xdd <-> 0xfd made in the object file). Note issue #2320 prevented mixing object files with different -IXIY options .

The intermediate files can be left if you supply -no-cleanup but there's a lot of files. It's probably easier to split the generation into multiple steps if you care about the .asm file.

%.o: %.asm
    zcc ... -o $@

%.asm: %.c
   zcc ... -o $@

@feilipu
Copy link
Collaborator

feilipu commented Sep 6, 2023

Closed with feilipu/z88dk-libraries#2

@feilipu feilipu closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants