I am trying to print a string in a way that's OS-neutral. For example, the program should run the same on Windows as it does on *nix.
Is this even possible? I'm assuming that since the underlying architecture is the same (x86) that the method would be the same. Is it as simple as calling an interrupt?
The reason for this is I'm trying to write a compiler that generates assembly code - at this early point in its development, only a handful of features are present - I'd like to be able to test the generated assembly code in either Windows or *nix. Down the road, it will be impossible to maintain platform-neutrality while generating the same code, but basically all I want to do at this point is print a string.