Tag Archives: x86

gcc, llvm, and Linux kernel

This post talks about what happened recently in the Linux kernel mailing list discussion. While this post does not dig into compiler internals or the whole picture between the Linux kernel and compilers, we discuss 2 specific issues from gcc … Continue reading

Posted in OS, Stuff about Compiler | Tagged , , , , | Leave a comment

Android 4.0 for x86 – Install Android 4.0 using KVM in your Linux

Thanks to the project Android-x86, now Android 4.0 is able to run in our PC stably. Just installed Android 4.0 in my Fedora 18 Linux using KVM – it is stable and cool! This post shares some key points for … Continue reading

Posted in OS | Tagged , , , , | Leave a comment

Add a new syscall into Linux kernel – for fedora 18 with kernel 3.8.7

Adding a new syscall into Linux kernel would be tricky for the beginners (like myself), especially considering the kernel source tree structure changes among different versions. It seems most of the online tutorials focusing on older versions of kernel (2.6.X) … Continue reading

Posted in OS | Tagged , , , , | Leave a comment

shellcode 1 – comments for the doc “The Basics of Shellcoding”

Recently been doing some stuffs on Shellcode. After a while wandering in the net, I found the doc “The Basics of Shellcoding” by Angelo Rosiello may be the very concise introduction to start with shellcoding, especially for the newbie like … Continue reading

Posted in Security | Tagged , , , , , | Leave a comment

side effect of “++” in C – compiler implemenation with assembly

This post shows a common known side effect of “++” operator in C programming because of different compiler implementation. Assembly code from PowerPC and x86 with gcc is provide to show the key difference and the reason why for this … Continue reading

Posted in Programming, Stuff about Compiler | Tagged , , , | Leave a comment

Intel x86 32-bit assembly – function call & stack frame

This post is originally written for a basic view on function call and stack frame in Intel x86 32-bit assembly code. EBP and ESP are the focus. A stack layout pic with dynamic register changes is also down there. May … Continue reading

Posted in Programming, Stuff about Compiler | Tagged , , , , , , | 1 Comment

IA 32 CPU architecture – NetBurst

Please kindly note that the picture below takes a great reference from the book ‘Professional Assembly Language’ by Richard Blum – which is a very practical book and my first book on assembly programming. The other very useful and important … Continue reading

Posted in OS, Programming | Tagged , , | Leave a comment

x86 assembly programming with GNU – tool tips

1. coding pattern # Pattern used by as and ld .section .data < initialized data here> .section .bss < uninitialized data here> .section .text .globl _start _start: < instruction code here> ———————————- # Pattern used by gcc .section .data < … Continue reading

Posted in Programming | Tagged , , , , , , , , | Leave a comment