beluga
beluga copied to clipboard
Support OSX
Looks very interesting in retrospect or to study compilers. How difficult would it be to support Mach-O?
Thanks for your comment.
beluga
does not directly generate binary code; it currently generates assembly code and uses a system assembler and a linker to build binaries. Fortunately, modern Macs run on an Intel and beluga
is prepared to speak both Intel and AT&T syntax assembly, so I think it would be possible to support OS X with small changes on an existing machine description.
The hurdle to clear would be to incorporate the compiler with Mac's system libraries and, probably, to require to install Xcode, that is, to require a compiler to install another compiler.
I'm trying to have the compiler work on my Mac and will share the result if succeeded.
@mycoboco Thanks for the insight!