Hi everyone i just wanted to know if learning assembly is really
needed and how to code other microcontrollers and microprocessors
like arduino and raspberry pi but are not arduino and raspberry pi or
in case I wanted to design my own circuit board
Hi everyone i just wanted to know if learning assembly is really
needed and how to code other microcontrollers and microprocessors
like arduino and raspberry pi but are not arduino and raspberry pi or
in case I wanted to design my own circuit board
I completely agree with John,
Michael I think you misunderstood
Assembly is always faster than c, even in avr
Binary is even faster
It is because even in a language like there is a lot of code that is not necessary for the program to function(libraries) ,
In a computer with 16GB ram and 3.6ghz processor it is not a problem but when used with a mcu with 8kb ram and 16mhz processor it has effects on speed of execution.
Binary faster than Assembly, is kind of like saying French is faster than English (Maybe a bad analogy
)
Assembly is simply mnemonic representation of Binary to make it easier to remember the codes, even the data sheets list the code sets using the friendly mnemonic along with the HEX / Binary
It is the general use of Libraries in any language that can slow things down due to being typically written in an way to maximize use for many applications rather than one.
Assembly in of itself is no slower than the direct binary coding. except to actually write the code where the assembly can be way faster.
Peter
Binary faster than Assembly, is kind of like saying French is faster than English (Maybe a bad analogy
)
Assembly is simply mnemonic representation of Binary to make it easier to remember the codes, even the data sheets list the code sets using the friendly mnemonic along with the HEX / Binary
It is the general use of Libraries in any language that can slow things down due to being typically written in an way to maximize use for many applications rather than one.
Assembly in of itself is no slower than the direct binary coding. except to actually write the code where the assembly can be way faster.
Peter