https://github.com/egorbo/mononet5sample
https://github.com/egorbo/mononet5sample
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/egorbo/mononet5sample
- Owner: EgorBo
- Created: 2020-09-25T07:08:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T16:47:51.000Z (over 5 years ago)
- Last Synced: 2025-04-19T18:50:36.347Z (about 1 year ago)
- Language: C#
- Size: 251 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MonoNET5Sample
A simple `net5.0` console app with mono-LLVM as a runtime.
**IMPORTANT: it's not an official way to enable Mono runtime for any `net5.0` app. It's just a simple playground to test LLVM back-end**
```
./run.sh
```
Expected output:
```asm
; *** ASM for Program:Test () ***
0000000000000000 movl -42, %eax ;; return -42;
0000000000000005 retq
```
^ codegen for:
```csharp
static int Test()
{
return Sse2.Subtract( // LLVM is able to fold constant vectors :p
Vector128.Zero,
Vector128.CreateScalar(42))
.ToScalar();
}
```
`MONO_VERBOSE_METHOD=Test`