News for hackers. Stuff that matters.

anarion

Re:GDB tricks on Friday November 28, 2014 @02:47PM (#8671942)
This lack the best option: ctrl-x a

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

Re:Kernel 101 – Let’s write a Kernel on Tuesday April 15, 2014 @03:49PM (#7593911)
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;"
Re:The Shortest Crashing C Program on Friday May 24, 2013 @10:29AM (#5762971)
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

Re:The Shortest Crashing C Program on Friday May 24, 2013 @10:14AM (#5762867)
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.