The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => The Orphanage => Topic started by: Bieb on January 12, 2005, 10:47:59 PM

Title: Porting applications
Post by: Bieb on January 12, 2005, 10:47:59 PM
With the advent of EasyCode, I now plan to switch all my programming to Win32 ASM.  So, now that I'm doing this, what do I need to learn to port my apps written in Win32 ASM to Mac OS X and Linux (with the X window system)?
Title: Re: Porting applications
Post by: Jibz on January 13, 2005, 10:39:38 AM

C

:green
Title: Re: Porting applications
Post by: hutch-- on January 13, 2005, 11:29:19 AM
Bieb,

Jibz is right here, across different hardware and operating systems, you need a portable language so unless you have a strong enough stomach for JAVA, C is what you have left.
Title: Re: Porting applications
Post by: petezl on January 13, 2005, 11:31:50 AM
Hi Bleb,
I wanted to program asm for xwindows but there is virtually no help out there for it.  As Jibz said, it's a C world.
Actually with a grounding in masm, C is reletively easy to pick up, just the funny syntax to get used to and you seem to be looking too deep all the time, but this can't be a bad thing.
Peter.
Title: Re: Porting applications
Post by: Bieb on January 13, 2005, 02:44:28 PM
I know some basics of C, but what I mean is, I obviously won't be able to just take some Windows C code and recompile it for Mac OS or Linux.  What I mean is, what sorts of system calls, etc., will I need to learn, and where can I find some basic tutorials to get started with?
Title: Re: Porting applications
Post by: P1 on January 13, 2005, 03:30:48 PM
Your also programming across Intel/AMD vs Motorola uP ( microProcessors ) hardware as well as the OS hurdles.

Regards,  P1  :8)
Title: Re: Porting applications
Post by: petezl on January 13, 2005, 06:26:03 PM
There is an immense amount of information out there.  Do a search on xwindow programming. This is just one overview:
http://users.actcom.co.il/~choo/lupg/tutorials/xlib-programming/xlib-programming.html
Peter
Title: Re: Porting applications
Post by: Vortex on January 13, 2005, 07:45:02 PM
Hi Bieb,

There are also other problems about porting applications to other platforms. For example, the equivalent of API functions in Linux are interrupts like int $0x80
Title: Re: Porting applications
Post by: exluddite on January 14, 2005, 02:52:57 AM
As far as Linux goes, you might want to take a look at this:

http://www.linuxgazette.com/node/9793

If you want the details  there's an O"Reilly book called "Understanding the Linux Kernel".
Title: Re: Porting applications
Post by: thomasantony on January 14, 2005, 06:16:47 AM
Hi,
   You may find this interesting

http://qrpc.com/ia32/

It is a GNOME app made using assembly

Thomas Antony :U