flat assembler
Message board for the users of flat assembler.
Index
> Windows > Removing used coff objects |
Author |
|
saigon 02 Jun 2006, 21:05
One solution I used in my interpreter was to scan the user source code to see which functions are used, then it creates an object file which has the reference to only the found functions, after that the file will be passed to the linker and you got your static lib.
If I remember correctly, the project was done in a high level language, so it might be hard to do it in FASM. I assume you are creating a programming language, right? If it's so, the best option is to scan the code through to find only the used functions. I hope this helps, but I don't have any source code to show you an example. |
|||
02 Jun 2006, 21:05 |
|
Quantum 03 Jun 2006, 16:02
2 zubi:
Quote:
Those references point to external resources (because actual fucntions got stored in separate objects). That's why they call 'em externals. Externals are just symbols the linker whould try to resolve while linking together all thous modules. That's why your references are all symbolic - no fixed addresses could be stored until linkage stage. But you can get real addresses at runtime. Your call stack tracing code should be rewritten to make this work without ugly hacks. |
|||
03 Jun 2006, 16:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.