The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => The Orphanage => Topic started by: shadow on June 10, 2005, 04:02:01 PM

Title: MAC programing
Post by: shadow on June 10, 2005, 04:02:01 PM
Is there an equivalent to MASM for mac osx? :eek
Title: Re: MAC programing
Post by: Tedd on June 10, 2005, 04:46:32 PM
Masm uses x86 instructions.
Mac uses powerpc.
They are different.


However, if you're nuts, I suppose you could try porting one of the other assemblers to mac. Nasm source is in C, so I suppose this would require the least effort.
Title: Re: MAC programing
Post by: Bieb on June 20, 2005, 11:05:29 PM
GCC for Mac has an assembler, but PPC asembly is really awful stuff.
Title: Re: MAC programing
Post by: hutch-- on June 21, 2005, 12:51:54 AM
With Apple embracing x86 at last, you may only have to wait a while to be able to use at least some of the x86 assemblers for a MAC.
Title: Re: MAC programing
Post by: Bieb on June 21, 2005, 07:49:17 PM
Gah!  It's Mac, not MAC.  MAC is an acronym...
Title: Re: MAC programing
Post by: Webring on June 22, 2005, 10:24:29 AM
Quote from: Robert Bieber on June 21, 2005, 07:49:17 PM
Gah!  It's Mac, not MAC.  MAC is an acronym...

[edit by hutch--]

Just be a little careful with wisecracks to other embers, it could be taken the wrong way.
Title: Re: MAC programing
Post by: AeroASM on June 23, 2005, 01:25:54 PM
Quote from: Robert Bieber on June 21, 2005, 07:49:17 PM
Gah!  It's Mac, not MAC.  MAC is an acronym...

For Media Access Control.
Title: Re: MAC programing
Post by: shadow on July 01, 2005, 09:28:50 PM
i know...  but...  Please dont hate me   :(   -tear- I'M SORRY!   :lol
Title: Re: MAC programing
Post by: RobbyB on December 18, 2006, 10:26:07 PM
Thought I'd ping this thread....

We're moving a large project (will a fair amount of MASM assembly) over to OS X (x86 only, not PPC).
Any one know of the easiest way to do this?

Are there any MAC (excuse me....Mac) targetted MASM assemblers in beta somewhere?

How did Intel convert it's IPP & SSE intrinsics?

Title: Re: MAC programing
Post by: hutch-- on December 18, 2006, 11:14:38 PM
Robby,

Depending on how it was written, porting masm code to GAS is not a big deal if you use the Intel syntax option. I don't know if MASM will run on the x86 mac platform unless you have an emulator of some type but the code should be no big deal to port as long as it does not use massive amounts of pseudo high level constructions in it.
Title: Re: MAC programing
Post by: RobbyB on December 19, 2006, 01:05:58 PM
There's enough code that we don't want to support two code bases.  Obviously our preference is to have the differences managed by different include files with a small amount of platform specific macros.

Also, GCC, AS, and NASM seem to be the only tools supported by XCode (GAS and GASP seem to be external and 'not qualified' by Apple).  We've also exported the use of .S (capital) files (to use C type preprocessing).

At first, we naively thought that the x86 assembly would be reasonably portable between the WinTel and MacTel platforms.....but it seems like everyone simply operates with multiple code bases .... or converted to C++ with IPP & SSE intrinsics.