Answer the question
In order to leave comments, you need to log in
What does an assembler program look like on different platforms?
I'm interested in assmo. I can't understand here. For example, under Windows the program will look one by one, and under Linux it will look different. It's more clear than not clear. They also write that for different platforms (processors) the program on assma will also look different. Here, in principle, it is also logical, but doubtful.
The crux of the misunderstanding is this. Is it true that a program written in NASM will look different, for example, under Windows on I3 or I5 or I7 processors or under Linux on I3 or I5 or I7 processors? And what will be the difference?
In general, I'm already confused. I can't sort everything out for myself. Explain, please, or poke something to read. I do not know how to formulate a question adequately to find what you need.
Answer the question
In order to leave comments, you need to log in
Is it true that a program written in NASM will look different, for example, under Windows on I3 or I5 or I7 processors
Are you interested in an asma program or directly in machine code?
Native code looks different for different architectures. Different processors may have a different set of instructions, but in the case of x86 processors, these changes are contained in additional instructions, so the program may look the same, or it may have different (optimized) individual instructions.
As for the direct text in assembler, now under Windows and Linux they rarely write in pure assembler without using libraries. If you use it, then the call to system functions will naturally be different, because they are different in different systems.
Linux and Windows are operating systems, a set of libraries for working with graphics and devices. All mathematical calculations on asma will look the same on the same processors. There is such a thing as a set of commands, there are such: x86, amd64, ia64 - for each set of commands the program will not change. But working with libraries will be different.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question