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?

  1. 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.
  2. 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.
  3. 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.
  4. 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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -