[Ilugc] need help in 64-bit code

  • From: cyborg4k@xxxxxxxxx (Shakthi Kannan)
  • Date: Fri May 5 19:37:23 2006

Hi Sudheer,

--- sudheer <urwithsudheer@xxxxxxxxx> wrote:

Can any one tell me what should i do to make my user
space files compatable.

Kernel compilation is very different from a user-space
programming in a GNU/Linux environment.

In kernel-space you have special gcc flags and you are
using the kernel header files.

In user-space programming, you will be using glibc,
mostly.

Can i have common makefile for 2.4 and 2.6 driver
module.

Well, you could. You have the freedom to. But, its
convenient to maintain separate Makefiles considering
all the rules you can have.

At present i am using 2 differnt makefiles and
changing them when ever i 
cahnge the kernel.

No harm in it.

Porting GNU/Linux applications to 64-bit systems:
http://www-128.ibm.com/developerworks/linux/library/l-port64.html

Porting GNU/Linux applications to 64-bit Intel
architecture:
http://www.intel.com/cd/ids/developer/asmo-na/eng/167739.htm

Porting to 64-bit GNU/Linux Systems, by Andreas Jaeger
from GCC Summit 2003 is an excellent paper. Check it
from here:
http://gcc.fyxm.net/summit/2003/

SK

--
Shakthi Kannan
http://www.shakthimaan.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com ;

Other related posts: