cpu - Some general information about assembly -
i accidentally ended here: http://altdevblogaday.com/2011/11/09/a-low-level-curriculum-for-c-and-c/, , turned out 1 of informative collection of stuff have read far. knew assembly kind of low level language can executed directly processor, but, read each processor has it's own assembly.
questions:
- is true?
- will able run basic assembly on both netbook , pc?
- is difference between, say, avrs (who use risc architecture) , x86 processors use cisc, instruction set use?
- how run assembly code , in kind of files store it?
- yes, extend. although 2 processors same family might have different assembly languages, in reality 1 language may extension of other. processors different manufacturers (e.g. intel , amd) share great deal of instruction set. moreover, in spite of vast number of assembly languages out there, share relatively small number of fundamental concepts. once learn program in 1 assembly language, learning second 1 order of magnitude easier undertaking. of course there exceptions rule: example, learning assembly cpu follows harvard architecture trickier learning second von neumann assembly. switching between risc , cisc may present challenges well.
- it depends: if pc , netbook have cpus same family, may lucky. there's more instruction set being able run assembly language program, though: operating system matters lot, too. example, linux , windows not share same format of executable files.
- there lot more hardware instruction set. there cpus identical instruction sets use different hardware. classic example 8088 vs. 8086: instruction sets identical, hardware differs rather fundamentally because of width of external data bus.
- you run assembly code first compiling it, same way c programs.
.asm
typical extension assembly programs, it's far being universal rule. can embed assembly c/c++ files using compiler-specific extensions.
Comments
Post a Comment