From: John M. <ato...@gm...> - 2011-05-25 03:08:29
|
On Wed, May 18, 2011 at 2:59 PM, Borja Ferrer <bor...@gm...> wrote: > PS: John, with clang do you get doubles or long long variables aligned to > an 8 byte boundary? I've set their alignments to 1 byte in a constructor > (cant remember now the name, but it's in the clang patch files in svn) but > they get aligned too much wasting memory. Any ideas there? > I've never checked the correctness of what the AVR target info produces. It's basically a patchwork of other targets like PIC16 and MSP430. There isn't much clang documentation for creating a port (at least compared to LLVM). I also think clang is X86 centric and has some hard coded assumptions of the Target. There are more src files that will need to be modified in clang but I believe Target.cpp is the minimum that allows it to be compiled. I'll try to find some time to look into it. |