beluga icon indicating copy to clipboard operation
beluga copied to clipboard

Support OSX

Open bassu opened this issue 9 years ago • 2 comments

Looks very interesting in retrospect or to study compilers. How difficult would it be to support Mach-O?

bassu avatar Dec 19 '15 09:12 bassu

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 avatar Dec 21 '15 07:12 mycoboco

@mycoboco Thanks for the insight!

bassu avatar Dec 21 '15 10:12 bassu