#Jasmin Assembler help and creating a language target to it

10 messages · Page 1 of 1 (latest)

dusk moat
#

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)

Nim Programming Language

The Nim programming language is a concise, fast programming language that compiles to C, C++ and JavaScript.

dusk moat
#

I got pinged?

dusky wave
# dusk moat I got pinged?

I think they read your post, missunderstood somethinc, pinged you regarding it, realized their missunderstanding and deleted it

dusk moat
#

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

dusky wave
#

well, you could use int and a bunch of ifs

dusk moat
#

True

dusky wave
#

alternatively, just use the next-bigger datatype in combination with a bit-level AND

dusk moat
#

Does long even have a bigger datatype?