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).