77
Assembly coding in Repl.it
planned
M
MeowC
Will we ever have Assembly coding in Repl.it?
I've been wanting to use this language for a while.
Activity
Newest
Oldest
h
hg0428
Me too
x
xxpertHacker
(
that moment when it dawns upon you that Repl probably won't add any Assembler languages
)C
CodingRedpanda
@xxpertHacker: its
Planned

x
xxpertHacker
@CodingRedpanda: It's also... been 2 whole years
:(
C
CodingRedpanda
@xxpertHacker: :'(
p
programmeruser
@xxpertHacker: you can just use gcc for AT&T and nasm for Intel.
C
CodingRedpanda
i wonder if they could add syntax highlights to ASM too.
e
elburg
LET'S GO!!!

C
CodingRedpanda
@elburg:

e
elburg
@CodingRedpanda:

C
CodingRedpanda
@elburg: :D
p
programmeruser
Here's a template for NASM assembly that you can use until Assembly is implemented: https://repl.it/talk/templates/NASM-Assembly-Template/53199
ACleverDisguise
Which one?
First which ISA? x86(32- or 64-bit)? ARM (if so, which flavour)? MIPS? Power? RISC-V? Z80? System-Z? 8051?
Once you've selected which ISA(s), which assembler? gas? Microsoft's? NASM? YASM? fcml?
There's no single "Assembly".
h
hg0428
@ACleverDisguise: x86 is the most important to add, after that add all the most popular
ACleverDisguise
@hg0428: It's not even close to the most popular.
ARM outweighs x86 by a factor of about 4:1 to 10:1 depending on whether you want to treat 32-bit and 64-bit as the same family or not. Just because
you
haven't seen/done much with ARM doesn't mean it's not there. You probably have a dozen ARM-powered devices within 10m of your current location.h
hg0428
@ACleverDisguise: I only know x86 so that’s why I think it should be the first to be added. I think a lot of others know x86 too.
ACleverDisguise
@hg0428: "Just because
you
haven't seen/done much with ARM doesn't mean it's not there."Solipsism isn't really a great standpoint from which to decide upon feature implementation.
p
programmeruser
@ACleverDisguise: repl.it runs on linux container so I would assume that they would implement x86 Assembly with NASM or GAS.
Harmeet Singh Bhatia
planned
e
elburg
@Harmeet Singh Bhatia: Nice
S
SigmaPhi
I think it is already be possible; @SPQR has shown that you can use GNU bash to access the GCC compiler to compile C, so it should be trivial to compile assembly aswell