[M3devel] max_align

Jay K jay.krell at cornell.edu
Tue Jan 26 13:15:21 CET 2010


I kind of think max_align ought to left up at 64 for all platforms, or better yet, just removed.

 

In particular, this align LONGINT on 64bit boundaries on 32bit x86 systems.

And also double (LONGFLOAT, whatever).

 

This would help with atomic compare exchange on 64 bit values on x86.

It would probably let us drop the m3cg x86 -mno-align-double switch.

  That would have saved me quite some debugging time a while ago....

Not sure about -munaligned-doubles though on Linux/sparc.

 

I'd have to check what the language allows, but if there is "adequate" and

"ideal" alignment, then users should maybe be able to ask for "adequate"

if they have large arrays and want to optimize for memory.

 

Note that some platforms (PA64_HPUX, PPC_LINUX) have 128bit-aligned jmpbuf.

Though max_align doesn't appear to be applied to jmpbufs.

 

Notice that the language doesn't let you declare such high alignment.

 

- Jay

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100126/6742ac38/attachment-0001.html>


More information about the M3devel mailing list