ok guys. Im new here so please dont squash me like a bug. Im new to assembly as well. I even bought an assembly book recently ive been studying. My question is... Is it possible to write assembly that doesnt depend on api's, etc. Of other operating systems. Everything ive read so far usually ask the question... Do you want to write for windows or linux? My answer is neither. I want to write assembly that could be run on any x86 machine. Why would i want to do this? For pure self satisfaction. Assembly is nothing more than a hobby for me. To be more specific im interested in developing a gui or browser from scratch that will work regardless of OS. Could someone please shed some light on this for me?

5 Years
Discussion Span
Last Post by billgateswannab

This might help:

It is much easier to make different versions of the same program for each OS, but to make a single version appears to be possible, but I haven't never done it and wouldn't try. windows and unix are very different, and make a program to run for either is very inefficient for your time and for the computer to process when running, but have fun trying...

Edited by makman99: n/a


thanks for the response. So i am assuming if i actually want to develope my own style gui it may be worthwhile in eventually learning OS development and developing my own mini OS for the gui ? Am i corrrect?


Start small, if you are a windows guy, create say a simple calculator with the Windows API... Now try converting that to use the *NIX GUI stuff... XServer, GTK, widgets etc... of course you have to use a cross platform assembler to make life eaiser.. NASM and FASM are cross platform. Even DOS interrupts are different than *NIX system calls I think.

Or if your a *NIX guy do that the other way around...

To answer your question... technically yes you can run a windows app on *NIX and the other way around...

directly? No... you can't assemble a program for windows and copy it to *nix and have it work... both OS's have different formats for executables, different API's diff kernel functions etc...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.