I need to translate my C# code into assembly language suitable for RISC-V architecture. My c# code is below.
using System;
class Program
{
static void Main()
{
int a = 45;
int b = 7;
int c = 26;
int d = 34;
int minNumber, maxNumber;
minNumber = a;
if (b < minNumber) minNumber = b;
if (c < minNumber) minNumber = c;
if (d < minNumber) minNumber = d;
maxNumber = a;
if (b > maxNumber) maxNumber = b;
if (c > maxNumber) maxNumber = c;
if (d > maxNumber) maxNumber = d;
Console.WriteLine($"En küçük sayı: {minNumber}");
Console.WriteLine($"En büyük sayı: {maxNumber}");
}
}
tgm
(Tommy Murphy)
2
So you need to find a C# compiler and runtime for RISC-V.
Where have you looked and what have you tried so far?
tgm
(Tommy Murphy)
3
Here are some C#/.NET on RISC-V resources that may be worth checking out…
There is probably a lot more out there than just those.
I need a converter like this converter. Which gives RISC-V output. This project seems to work for me, but I couldn’t get it to work.
tgm
(Tommy Murphy)
5
I need a converter like this converter.
I don’t understand what this means.
This project seems to work for me, but I couldn’t get it to work.
Or this - seems like you’re contradicting yourself?
If you are having problems with the SharpRISCV project then you should probably ask about it over there.
Dunne54
(Dunne)
6
thank you for the sharing this…
Dunne54
(Dunne)
7
Thank you for sharing this…