Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coding in x86 - compiler code generation

Is there a good reference for writing code in x86 assembly. I am writing a compiler and i am currently in the code-generation phase. The language i am implementing is Object Oriented. For example now i am having trouble writing assembly for class declarations, object layouts etc... is there any book or reference that covers this topic ?

like image 473
Mike G Avatar asked Mar 24 '12 22:03

Mike G


1 Answers

The architecture reference documentation is your best bet.

However, don't expect any help for class declarations or much for object layouts. The language specification being compiled would have some of this, but the machine code generated for class declarations is very loosely coupled to the language, and is largely a choice of the implementer, not the CPU architecture.

like image 160
wallyk Avatar answered Oct 06 '22 22:10

wallyk