can you elaborate on MachineDesc and how to construct one for the local machine?

Benedikt Huber benedikt.huber at gmail.com
Mon Aug 29 23:28:08 BST 2011


On 24.08.2011, at 17:34, notsowelltyped at Safe-mail.net wrote:
> subj.
>
> also, it's should be noted, that after some time spent toying with  
> language-c i would like to express my appreciation for the all work  
> you done on it.
> cool stuff, but requires more docs.
Hi,
(cc-ing list)
thanks, glad you like it. MachineDesc specifies the size (in bytes)  
and alignment requirement (in bytes) on a certain architecture. I'm  
not too familiar with the internals (implemented by Aaron Tomb), but  
have a look at the machine description for i386 in src/Language/C/ 
Analysis/AstAnalysis.hs, and how it is used in src/Language/C/Analysis/ 
ConstEval.hs.
cheers, benedikt



More information about the Language-c mailing list