Intel assembly is usually used in windows, while at&t assembly is used in Linux. The two are obviously different in syntax.
If ProgramMust be embedded in assembly, and cross-platform is required? The general idea is to compile a set of operating systems, such as Windows and Linux. Code. In this way, the maintainability is worse. After all, there are two sets of independent code to be maintained.
My practice is to implement a general abstraction layer independently, so that the compilation of Intel and at&t can be unified on the syntax layer.
Of course, I have not implemented it completely. I only support a few of the most commonly used commands (but all of them have been tested in detail and have been applied to actual projects ). I think it is not suitable to call it cross-platform assembly language programming. Please criticize and correct it.) Interested friends can communicate with each other.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.