LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I have learned masm .would it be easier to learn gnu assembly? (https://www.linuxquestions.org/questions/linux-newbie-8/i-have-learned-masm-would-it-be-easier-to-learn-gnu-assembly-4175507026/)

mirage1993 06-04-2014 10:11 AM

I have learned masm .would it be easier to learn gnu assembly?
 
I know there are many difference between the masm and gas.
but I have learned masm. I want to know if it could be easier to learn gas.

by the way ,I want to learn the linux kernal,so I need to learn gnu assembly.
thanks.

business_kid 06-04-2014 02:18 PM

If you can program in one assembly language, learning others is trivial. It's the cpu that matters for Assembler, so you would learn x86 assembler, and x86_64 would be a handful of extra commands. I only used a few: Z80, 8051, & PIC. Then my son showed me a program for his assembler class in x86 assembler, and I debugged it for him, and told him how to finish it. His teacher was crap.

Seeing as you are into assembler, you may enjoy Menuet OS. Google it.

jpollard 06-04-2014 04:18 PM

Quote:

Originally Posted by mirage1993 (Post 5182299)
I know there are many difference between the masm and gas.
but I have learned masm. I want to know if it could be easier to learn gas.

by the way ,I want to learn the linux kernal,so I need to learn gnu assembly.
thanks.

There is very little assembly in the kernel... All of that has been moved into platform specific entries, and mostly just provide library functions (atomic operations, mmu, context switching and such). Everything else is C.

onebuck 06-04-2014 06:12 PM

Member Response
 
Hi,

I programmed in BAL for a term then moved to masm with little or no effort. As others have pointed out that changes will be family/machine related. At one point machine language was the way to go but with advances in tools/assemblers for particular families dictated the move to allow efficient compilation & debugging.

There is nothing wrong with working in assembler, tool boxes & libs are available to enhance your experience(s) for each family. My early IBM BAL helped when I was introduced to Intel MASM. Personally, I protect my tool box and do not share.

Most times BASH scripting meets my initial design rules for implementing ideas. Sometimes you do not even need to move to assembly or higher level languages for a task(s).

Have fun!
:hattip:

mirage1993 06-04-2014 11:28 PM

thanks everyone!


All times are GMT -5. The time now is 07:38 PM.