Go to main content

STREAMS Programming Guide

Exit Print View

Updated: November 2020
 
 

Driver Compilation Lines

The following are some compile, assemble, and link lines for an example driver with two C source files, example_one.c and example_two.c, and an assembly language source file, example_asm.s.

cc -D_KERNEL -c example_one.c
cc -D_KERNEL -c example_two.c
as -P -D_ASM -D_KERNEL -I. -o example_asm.o example_asm.s
ld -r -o example example_one.o example_two.o example_asm.o