4 ms·
Does this mean I can now finally generate object files from .rs sources and link them myself? That is one of the things that rustc is severely lacking.
by sp1rit 4y ago
Does this mean I can now finally generate object files from .rs sources and link them myself?
That is one of the things that rustc is severely lacking.
- viraptor 4y agoIs that not what "rustc --emit=obj" does now?
- stingraycharles 4y agoOut of curiosity, why would you need this?
- hgs3 4y agoYou're basically asking why you'd want object files. They're a container of (usually) relocatable machine code. You can inspect or modify them with nm [1] or objcopy [2]. You can link them with object files generated from other programming languages to mix languages. Maybe you have a custom linker or environment that requires you to convert an ELF or COFF object file to some custom variant. There are lots of reasons. [1] https://linux.die.net/man/1/nm https://linux.die.net/man/1/nm [2] https://linux.die.net/man/1/objcopy https://linux.die.net/man/1/objcopy
- deleted 4y ago[deleted]