Răsfoiți Sursa

Update readme

Guo Hui 6 ani în urmă
părinte
comite
2f1f263a29
2 a modificat fișierele cu 21 adăugiri și 2 ștergeri
  1. 10 1
      README.md
  2. 11 1
      src/apps/Chino.Apps.Shell/Program.cs

+ 10 - 1
README.md

@@ -50,11 +50,20 @@ natsu-clr
 
 Install .Net Core SDK 3.0 and CMake
 
+1. Build compiler
 ```
 dotnet build Natsu.sln
+```
+
+2. Run compiler to generate .h and .cpp
+```
 cd src/Natsu.Compiler/bin/Debug/netcoreapp3.0 && ./Natsu.Compiler
+```
+
+3. Build runtime and app
+```
 mkdir out && cd out
-cmake .. -DCHINO_ARCH=Emulator -DCHINO_BOARD=Emulator
+cmake .. -DCHINO_ARCH=Emulator -DCHINO_BOARD=Emulator -DCHINO_APP=Chino.Apps.Shell
 ```
 
 ## Roadmap

+ 11 - 1
src/apps/Chino.Apps.Shell/Program.cs

@@ -1,5 +1,6 @@
 using System;
 using System.Diagnostics;
+using System.Threading;
 
 namespace Chino.Apps.Shell
 {
@@ -7,7 +8,16 @@ namespace Chino.Apps.Shell
     {
         static void Main(string[] args)
         {
-            Console.WriteLine("Hello Shell!");
+            Debug.WriteLine("Hello Shell!");
+
+            int i = 0;
+            while (true)
+            {
+                Thread.Sleep(1000);
+                Debug.WriteLine("Tick" + i++);
+            }
+
+            //Console.WriteLine("Hello Shell!");
         }
     }
 }