Next | Prev | Up | Top | Contents | Index

Compiling the Example Driver

Compile ramdrive.c using the techniques described under "Compiling and Linking". An example compilation is shown in Example 12-1,

Example 12-1 : Compiling the Example Driver for a 32-bit Kernel

% set CFLAGS = "-DDEBUG -D_K32U32 -D_KERNEL -DSTATIC=static -D_PAGESZ=4096 -D_MIPS2 -DIP22 -DR4000 -G 0 -non_shared -elf -xansi -fullwarn -32 -mips2 -Wc,-pic0"
% cc $CFLAGS  -c ramdrive.c
When the driver is compiled with the -DDEBUG option, all its informational displays are enabled. Without that option, it only displays messages related to serious errors during initialization.


Next | Prev | Up | Top | Contents | Index