[cfe-dev] Cross platform code
Scott Parlane
scott at scottnz.com
Fri May 1 08:01:36 PDT 2009
Hi,
Sorry I have not actually implemented this.
I was just hoping it was possible.
It appears that because sizes of (some) types in C depend on the
architecture's bit-width that its not possible to do this with C.
Other languages could get away with it however. As long as they don't
have pointers.
Regards,
Scott
On Fri, 2009-05-01 at 16:05 +0300, Makslane Araújo Rodrigues wrote:
> Scott,
>
> Have you changed anything in the clang or llvm code to make this
> program possible?
>
>
> Regards,
> Makslane
>
>
> > From: scott at scottnz.com
> > To: cfe-dev at cs.uiuc.edu
> > Date: Fri, 1 May 2009 15:14:29 +1200
> > Subject: [cfe-dev] Cross platform code
> >
> > Hi,
> >
> > I read in llvm docs its possible to very late selection of
> architecture
> > dependent code (i.e. after optimization)
> >
> > How would I do this in practice, i have some C code I want to change
> > slightly depending on architecture. Preferably without having to
> re-run
> > clang/llvm-ld
> >
> > Regards,
> >
> > Scott
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
>
> ______________________________________________________________________
> Quer saber qual produto Windows Live combina melhor com o seu perfil?
> Clique aqui e descubra!
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list