View Single Post
Old 05-20-2004, 09:18 PM   #4 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
in my work i end up writing bits of assembly here and there, usually for risc processors or dsps. but i try to keep it to a minimum. why anyone would buy a pa-risc machine is beyond me, though. if you want to learn something useful, mips (some would say the purest risc architecture) or powerpc are probably in the lead. sparc machines and alphas are good buys on ebay nowadays, too. and all of those run linux better than hppa.

for inline assembly:
Code:
void my_function()
{
  // some c code
  asm("pushl   %ebp
       movl    %esp, %ebp");
  // some more c code
}
note that the above code does nothing (except cause a segfault).
joe_bruin is offline   Reply With Quote