有一个.c源文件,请告诉我,怎么最快的把它编译成可执行文件..

由 chinadoudou 在 03-23-2003 11:20 发表:

有一个.c源文件,请告诉我,怎么最快的把它编译成可执行文件..

??


由 dsj 在 03-23-2003 12:45 发表:


举个例子:

驱动D-Link DFE540 TX网卡?

1) 从 http://cesdis.gsfc.nasa.gov/linux/drivers/tulip.html 下载最新的tulip.c文件,并复制到/usr/src/tulip下;

2)执行以下命令,编译生成tulip.o:

#cd /usr/src/tulip

#gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall

-Wstrict-prototypes -O6 -c tulip.c

3)执行insmod tulip.o;<b

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus