Heya, i'm working on making the https://nim-lang.org language compile itself to Jasmin, an assembler for JVM bytecode, does anyone know how .var <var-number> is <name> <descriptor> from <label1> to <label2> works? I'm wondering if it needs a line number or label to work with (will add them in later, but it's a bit difficult to implement rn since i'm slowly just trying to make a limited subset of Nim compile to it)
#Jasmin Assembler help and creating a language target to it
10 messages · Page 1 of 1 (latest)
I got pinged?
I think they read your post, missunderstood somethinc, pinged you regarding it, realized their missunderstanding and deleted it
Ah fair
I've figured out the issue now anyway so it's all good
Just wondering if there's a good library to handle uint math for me
well, you could use int and a bunch of ifs
True
alternatively, just use the next-bigger datatype in combination with a bit-level AND
Does long even have a bigger datatype?