LLVMSharp icon indicating copy to clipboard operation
LLVMSharp copied to clipboard

Add Kaleidoscope Chapters 6, 7 and 8

Open mjsabby opened this issue 10 years ago • 3 comments

Chapters 6 and 7 take priority.

Chapter 8 is instructive of DWARF and debugging in general, but is less pressing.

mjsabby avatar Feb 25 '15 01:02 mjsabby

Maybe we need to rewrite the whole Kaleidoscope tutorial in C#?

donaldnevermore avatar Mar 17 '21 13:03 donaldnevermore

While you're at it @mjsabby, it would be great to get the Kaleidoscope examples upgraded from netcoreapp3.1 (EOL December 13, 2022)... :slightly_smiling_face: I realized this when I copied the examples to a local project and tried to run them (I only have newer .NET runtime versions installed).

perlun avatar Apr 29 '23 19:04 perlun

(For the record, the code seems to compile & run cleanly on .NET 6.0 so this should be quite simple to fix. The diff below is from my local project where I just imported the chapter 5 code into the project root.)

diff --git Kaleidoscope/Kaleidoscope.csproj Kaleidoscope/Kaleidoscope.csproj
index 068bfc0..cde6256 100644
--- Kaleidoscope/Kaleidoscope.csproj
+++ Kaleidoscope/Kaleidoscope.csproj
@@ -9,7 +9,7 @@
 		<AppDesignerFolder>Properties</AppDesignerFolder>
 		<RootNamespace>Kaleidoscope</RootNamespace>
 		<AssemblyName>Kaleidoscope</AssemblyName>
-		<TargetFramework>netcoreapp3.1</TargetFramework>
+		<TargetFramework>net6.0</TargetFramework>
 		<NuGetPackageImportStamp>0e4b5d39</NuGetPackageImportStamp>
 	</PropertyGroup>
 </Project>
diff --git KaleidoscopeLLVM/KaleidoscopeLLVM.csproj KaleidoscopeLLVM/KaleidoscopeLLVM.csproj
index abfb50a..bea345e 100644
--- KaleidoscopeLLVM/KaleidoscopeLLVM.csproj
+++ KaleidoscopeLLVM/KaleidoscopeLLVM.csproj
@@ -8,7 +8,7 @@
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>KaleidoscopeLLVM</RootNamespace>
     <AssemblyName>KaleidoscopeLLVM</AssemblyName>
-    <TargetFramework>netcoreapp3.1</TargetFramework>
+    <TargetFramework>net6.0</TargetFramework>
     <FileAlignment>512</FileAlignment>
     <NuGetPackageImportStamp>b8df454a</NuGetPackageImportStamp>
   </PropertyGroup>

perlun avatar Apr 29 '23 19:04 perlun