[LLVMdev] __STDC_LIMIT_MACROS and Visual Studio

Chris Lattner sabre at nondot.org
Wed Nov 3 09:35:44 PST 2004


On Wed, 3 Nov 2004, Morten Ofstad wrote:

> defining __STDC_LIMIT_MACROS on the command line is not really necessary
> for Visual Studio, and is a bit of a pain when you want to include the
> LLVM headers from your own project, so I moved the check a bit down into
> the Unix case to avoid the hassle... Here is a patch

Ok, makes sense!

> On a side note, everything is going well so far with integrating LLVM
> into our application -

Great!

> I was very happy when I found out I could use
> 'addGlobalMapping' to pass larger structures into the ExecutionEngine
> without copying, and also to add functions from our own application. If
> there are any problems with this approach, please tell me...

Yup, that should be no problem, just make sure that the LLVM view of the
data matches the data layout (i.e., the LLVM type matches).

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/




More information about the llvm-dev mailing list