From: Frank K. <fbk...@ve...> - 2007-04-16 00:26:43
|
Hi Frank! > I installed nasm 0.38.39 on MacOS X. But it seems that nasm does not > know the file output format "macho" (Mac OS binary). I am receiving > the error "nasm: fatal: unrecognised output format `macho'" Macho was added in 0.38.40 - not available as a "release" on SourceForge. You can get it from Apple: http://www.opensource.apple.com/darwinsource/10.4.5.x86/ as "nasm-2" (scroll way down). Nasm on SF is "undergoing alterations". We expect a release of 0.99(!) with not only Macho but 64-bit support(!)... "real soon now". > But in the nasm documentation the parameter "macho" is listed. You must be looking at newer-than-0.98.39 docs. The "-hf" switch should give you a list of the output formats in that particular executable. *Should* be accurate. > I would be please if you could tell what my mistake has been. No mistake... unless expecting Nasm to be ready for ya. You'll have to grab a "preview" version - from Apple, or off the CVS tree (anonymous CVS is *not* synched with developer CVS so you might miss the very latest changes...), and compile it yourself. If you do so, and get it working, I'd like to see a simple example"hello world". Low-level as MacOS will allow - I assume "call printf" looks like "call printf"... but it might be "call _printf", even that information would be interesting! Best, Frank |