Better HN
topnewbestaskshowjobs
Log inSign up

anarion

8 karma · joined May 24, 2013 (13y ago) · 4 submissions

Submissions

comment 12y ago · link · parent

This lack the best option: ctrl-x a

Don't bother having a external GUI, just use the built-in Ncruses one.

comment 12y ago · link · parent

Why kernel tutorials always say they need nasm. Gcc already comes with an assembler so simply use it instead of installing other softwares. And if you prefer intel syntax simply add ".intel_syntax;"

comment 13y ago · link · parent

No, a ret instruction would probably segfault, depending on the content of the stack. To terminate a program you have to use the corresponding system call. On linux :

mov $1, %eax

int $0x80

comment 13y ago · link · parent

Yes they are ! Global variables have static storage duration and are therefore default initialized. Be careful with the word 'static' which does not always correspond to the the keyword static which has several meaning ! When used with a global variable the static keyword has not the same meaning as static storage duration". It only means no external linkage.