Question:
How Long Would It Take Me To Learn Basic Assembler?
Kyle
2012-05-14 14:48:53 UTC
I want to learn some basic assembly (32-bit protected, NOT 16-bit real, unless you recommend). I want to use it only to design a SMALL, VERY SMALL programming language. When I say SMALL, VERY SMALL, I mean just that. I want only two key words, one that displays "Hello, World" and the other that displays "I'm a unique binary!" However, I want it to be able to compile the text file of one or of the other keyword and create a functioning binary that does what I just described. How long do you think it will take me to learn to this level in assembly language?

P.S: I know some C/C++ (some of both, better at C++), Python, and HTML/CSS (I know HTML/CSS has nothing to do with this, but I just put it there anyways to show that I'm not a COMPLETE n00b).
Three answers:
Taz
2012-05-14 14:55:33 UTC
"I want to use it only to design a [...] programming language."



Why not just write your compiler using C/C++ ?



Or you could go so far as to just make an interpreter.





reads input : say "hello"



turing algorithm notices the keyword say

then looks for the string to say.





As for how long it takes to learn asm... It depends which asm.. mips, that object one with an ide (its called something like Go! asm or something like that), mainframe, GNU, etc...



Honestly : anyone could learn any of them given enough time, it depends on how well you grasp new concepts and ideas.
pretto
2016-09-19 02:33:07 UTC
Well it certain would possibly not be handy...In order to be educated in ASM, you will have to fairly have an intensive information approximately the basics of laptop technology...Or you'll be able to battle tremendous time. Not best that, however there are exceptional models of Assembly....x86...MIPS...and so on.... I'm sorry, however your peers we are proper...It could mainly be quicker should you spent three months finding out C and principles of Comp Sci with two months of Assembly, than five months of Assembly on my own.
Jeff
2012-05-14 15:05:48 UTC
You know it's far easier to create a parser in C/C++ that converts your unique language to C or C++ then uses gcc to compile to machine code for you.



You would then be able to have you language be as portable as c or C++ right out of the gate. Create your own or maybe look into GNU bison.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...