Teen Programmers Unite  
 

 

Return to forum top

looking for a darwin-compatible assembler

Posted by infryq [send private reply] at July 26, 2002, 04:06:51 AM

Topic says it all... I can't seem to find anything that will compile on my machine(OS X). I for some reason had a copy of GASM, can't remember where it came from but it's all in .exe's so that's rather silly... and I don't know how to alter the pasm source so it will work. Help! I've checked the usual suspects, used a search engine; maybe I missed something?

Posted by gian [send private reply] at July 26, 2002, 04:11:06 AM

Surely it's not really a darwin compatiable assembler you are looking for, as much as an assembler compatible with the Apple architecture?
Unless you are referring to getting an actual assembler program for your operating system?

Posted by infryq [send private reply] at July 26, 2002, 06:30:30 AM

...Yes? I'm stabbing in the dark a bit, since there's very little literature on assembly for apple machines, but I know it exists, because we have a book on assembly for the old (prePPC) family of processors. So I've been looking at anything that says PPC assembly; maybe I've been on a wild goose chase. what do you suggest?

Posted by unknown_lamer [send private reply] at July 26, 2002, 11:08:07 AM

Mac OS X (and therefore Darwin) uses the GNU toolchain, so you want gas.

Posted by infryq [send private reply] at July 26, 2002, 04:04:38 PM

Is gas available outside of the binutils package? I wouldn't mind the extra stuff, it's just that bfd(whatever that is) doesn't support powerpc-apple-darwin5.5. Or maybe there's a way to make it work, but I don't know how to do it.

Posted by unknown_lamer [send private reply] at July 26, 2002, 04:58:52 PM

I think you have to get all of the binutils. Whatever bfd is, I bet you could edit the Makefile.am to not build it (e.g. remove bfd from the bin_PROGRAMS list and comment out the bfd_SOURCES list, run automake && ./configure && make). Or get a binary package from the darwin developers site.

UPDATE:
err, except bfd isn't a program. Same stuff, only bfd would be a library. Just comment out everything to do with bfd in the Makefile.am.

Posted by buzgub [send private reply] at July 26, 2002, 08:26:39 PM

bfd, IIRC, is the thingy that makes a string like powerpc-apple-darwin5.5 do something useful.

Posted by infryq [send private reply] at July 27, 2002, 12:56:43 AM

u_l: This line from the Makefile worries me:

# This is a list of inter-dependencies among modules.
...
all-gas: all-libiberty all-opcodes all-bfd all-intl


...that looks like a problem. errrg. I hesitate to try it anyway, and just delete the bfd bit from lines like that, because i don't know how crippling it'll be. gah.
Posted by unknown_lamer [send private reply] at July 27, 2002, 01:26:25 AM

Just try compiling it with bfd then. Can't you get precompiled binaries from the darwin developers site?

Posted by buzgub [send private reply] at July 27, 2002, 02:37:48 AM

are you sure that powerpc-apple-darwin5.5 is the correct string? You might like to see what gcc was compiled for (will gcc -v tell you that? I'm not sure).

Posted by infryq [send private reply] at July 27, 2002, 03:01:32 AM

Like I said, bfd won't compile on my machine. It would be *nice* if i could get precompiled binaries from the darwin site, but then, it would be nice if you could find anything at *all* in that mess.

I didn't tell it it was powerpc-apple-darwin5.5, configure came up with that all by itself. And gcc is its own nightmare... arggggh, I'm thinking I'm just going to wait on it all until I get my PC for school in a month. I feel so braindead at this.

Posted by unknown_lamer [send private reply] at July 27, 2002, 12:56:56 PM

http://www.opensource.apple.com/projects/darwin/1.4/darwintools.pkg.tar ? That is the Darwin Developers Package, it probably has binutils in it.

Posted by infryq [send private reply] at July 28, 2002, 01:20:47 AM

okay, so I meant it'd be nice if *I* could find anything in that mess...

u_l, you're amazing. problem solved. thanks.

Posted by unknown_lamer [send private reply] at July 28, 2002, 08:25:23 AM

I was forged in the fires of #debian.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.