Using Smatch!!!
Step 1a) |
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
#CC = $(CROSS_COMPILE)gcc
CC = $(CROSS_COMPILE)/home/carp0110/progs/gcc/build/gcc/xgcc \
-B/home/carp0110/progs/gcc/build/gcc/ --smatch
CPP = $(CC) -E
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
|
|
Step 1b)
Step 2) cat foo.c.sm | ./script.plOr you can do it all at once:
for i in *.c.sm ; do
echo $i
cat $i | ./script.pl >> errs
done
Click here to go to the scripts page.
|