flat assembler
Message board for the users of flat assembler.

Index > Main > Question about converting across platforms

Author
Thread Post new topic Reply to topic
Diode



Joined: 04 Jan 2005
Posts: 15
Diode
Let's say I make software in Fasm on a PC. Could I convert or port, or whatever the word is, the code over so it can be compiled to run on a Mac?

Just curious.

Thanks

-Diode

_________________
Mac for productivity. Unix for development. Windows for solitaire.
Post 05 Jan 2005, 23:18
View user's profile Send private message Reply with quote
beppe85



Joined: 23 Oct 2004
Posts: 181
beppe85
AFAIK, it can be compiled to run on Mac. The frustation will be that the code generated for the x86 processor line, and Mac are on top of PowerPC processors. Your MacFasm will assemble but the code produced will not run(natively, with an emulator I guess it will).

It's more or less so.
Post 06 Jan 2005, 01:22
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
It will be a lot easier for you to get C/C++ code running in a MAC than x86 assembly... this is because there's a LOT of systems offerring C/C++ platforms, while x86 assembly is tied to the x86 (ie, PC) platform. Of course there's VirtualPC for MAC, but that's sort of cheating Wink
Post 06 Jan 2005, 01:27
View user's profile Send private message Visit poster's website Reply with quote
Diode



Joined: 04 Jan 2005
Posts: 15
Diode
beppe85 wrote:
The frustation will be that the code generated for the x86 processor line, and Mac are on top of PowerPC processors.


I don't care about the PowerPC processors. They're old now. The G5 is the king of the market now.

_________________
Mac for productivity. Unix for development. Windows for solitaire.
Post 06 Jan 2005, 02:04
View user's profile Send private message Reply with quote
Diode



Joined: 04 Jan 2005
Posts: 15
Diode
I just saw a utility that converted Fasm into C code.

C code is portable, isn't it? Therefore, could I successfully convert a program's source code written in Fasm, into C, and then put that on a Mac and then compile that?

I would try it, but I've been learning Fasm for 2 days now, and so I haven't learned enough (yet) to make a program worthwhile to try it on.

I would assume it would work. However, that is purely speculation.

Has anyone tried it?

_________________
Mac for productivity. Unix for development. Windows for solitaire.
Post 06 Jan 2005, 02:10
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc
Quote:
I just saw a utility that converted Fasm into C code.


What was the name of this utility? I'd like to see how well it works on some of my programs.

Quote:
C code is portable, isn't it? Therefore, could I successfully convert a program's source code written in Fasm, into C, and then put that on a Mac and then compile that?


C programs that use only libc are pretty portable; but a Win32 program written in C isn't going to compile/run on a Mac without some significant changes. So C's portability is dependent on the libraries you use.
Post 06 Jan 2005, 11:04
View user's profile Send private message Visit poster's website Reply with quote
Diode



Joined: 04 Jan 2005
Posts: 15
Diode
oic That clears it up pretty good.

Also, I forgot that the Gx line of processors are still PowerPC processors, just like Pentium 4s are still x86. I was referring to the pre G days, but after reading what I posted, it would be irreleveant what version of PowerPC proessor someone programs for unless you are programming for 32, or 64 bit processors, then it might be different.

Just wanted to fix that.

- Diode

_________________
Mac for productivity. Unix for development. Windows for solitaire.
Post 14 Jan 2005, 01:34
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.