Open Swiftloke opened 2 years ago
Sorry for the very late reply, this kind of got swallowed by my mails. All armips symbols are automatically visible when linking object files. As long as the names match (which can be achieved by declaring them through extern "C"
) you can call them from the compiled code.
While reading through the documentation, I found the following line:
You can link object files or static libraries in ELF format. The code and data is relocated to the current output position and all of its symbols are exported. You can in turn use armips symbols inside of your compiled code by declaring them as
extern
.My objective is to write armips code (targeting 3DS), assemble it, and use the functions I declared in C. However, despite my best efforts I'm not able to find any option to actually export the symbols used into the ELF that armips produces when writing code. I was able to find some code that referred to exporting a symbol table, but it only seems to be called when importing ELF files and reading symbols from them.
I confess that I'm far from an expert on armips usage and the concept of linking, but given that I haven't found a way to make this work this seems to be a bug with either the documentation or the program. Any insight into what I'm missing is appreciated.