Open andrewrk opened 6 years ago
That would be a very nice feature for working with microcontrollers. You'd basically only need Zig and the programmer software then to get started.
You wouldn't want to replicate all of objcopy of course, but if you have option for outputting a pure binary file or a hex file (there are different formats, but I think Intel HEX is the most common), that would cover 99% of use cases.
It might be nice to be able to output both ELF and BIN/HEX, as ELF can contain debugging symbols and such.
the point of the objcopy build step is to remove the ELF headers and dump the raw machine code, is that right?
maybe do we want that to be a build switch of zig, such as
--raw-machine-code
?One of the goals of zig is that you wouldn't need to have GNU binutils installed.