Need some help

Jan 13, 2015 at 7:09 AM
Hello
i installed the llvm but i cant seem to finde the llc.exe i did add the bin folder to path
Jan 13, 2015 at 9:06 AM
Ok so i managed to get around this problem i now would like to compile a program that references a dll how ?
Coordinator
Jan 14, 2015 at 11:29 AM
Edited Jan 14, 2015 at 11:56 AM
Your need to compile your dll with CoreLib.dll reference.

1) you need to add this line into C# project

<NoStdLib>true</NoStdLib>

2) Add reference to CoreLib.dll

3) generate .ll files

Il2Bc.exe <YourDLL>.dll /corelib:CoreLib.dll
Il2Bc.exe CoreLib.dll

4)
then the same as in helloworld example

PS1: copy all dlls into current working folder

PS2. Keep in mind that CoreLib.dll is very limited subset of mscorlib.dll which means that if you are missing required classes you need to extend CoreLib project your self.

PS3. Do not forget that not all C# .NET features are supported such as Reflection and multi dimensional arrays
Jan 14, 2015 at 12:37 PM
Thx im my project uses regex and linq, but I already figured out its not in the corelib but I'm almost done porting the full .net core then that will all work would be done by tonight. If you want my core lib implementation
Coordinator
Jan 14, 2015 at 2:24 PM
Edited Jan 14, 2015 at 2:25 PM
hi, It would be cool to have whole port of Mscorlib.dll but it is not easy. You will hit some issues. for example when MScorlib uses pointers, they calculate offsets in memory manually and they are not the same as in C# native. and there will be issue with Array if you are using different numbers of interfaces (but it is not big issue, I will fix it)
Coordinator
Jan 14, 2015 at 2:28 PM
Edited Jan 14, 2015 at 2:29 PM
yes, when you finish with porting mscorlib give it to me I will check the crucial parts and will test it. or you can simply run Sscli tests in the project to test it (you can find tests here http://www.microsoft.com/en-gb/download/details.aspx?id=4917)
Jan 14, 2015 at 4:28 PM
I would love to join the dev team i would add support for visual studio like an plug in that allows you to use the native compiler in place of the normal one ? If i may join ?
Coordinator
Jan 14, 2015 at 7:02 PM
Edited Jan 14, 2015 at 7:09 PM
you are already been added as a developer. you can see yourself on tab people.

BTW my codeplex project Realscript IDE can show you how to write debugger in VS 2010
Jan 15, 2015 at 3:21 AM
Cool, il connect to the tfs this week end and get some work done.
add me to skype: FuseTheCoder
Jan 15, 2015 at 6:54 AM
It seems im not a devloper ?? my name is FuseTheCoder on codeplex
Coordinator
Jan 15, 2015 at 12:13 PM
My apologies.

I have added you.

Regards
Alex
Jan 21, 2015 at 6:51 AM
Hello,
I installed LLVM but I can not find llc.exe. Can you explain how to install.
Coordinator
Jan 21, 2015 at 8:57 AM
Edited Jan 21, 2015 at 11:03 AM
valipan2 wrote:
Hello,
I installed LLVM but I can not find llc.exe. Can you explain how to install.
open this page and read how to build it
http://llvm.org/builds/

or try install version 3.5
http://llvm.org/builds/downloads/LLVM-3.5.r210028-win32.exe

But I would recommend just clone git and compile it
git clone http://llvm.org/git/llvm.git
md cmake-build
cd cmake-build
cmake -f .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
make
or
cmake -f .. -G "Visual Studio 11"
MSBuild /p:Configuration=Release INSTALL.vcxproj