O HAI THIS BLOG PURPZIEZ 2 B UZED AZ MAH PLESIOUS MEM. :)

2006/09/29

TDS, stress_test + mudflap

今日のdiffstat.
[Today's diffstat.]
 Makefile                 |   83 ++++++++++++++++++++++++++++++++++++-----------
include/chromatic_func.h | 2 -
include/graph_func.h | 2 +
include/graphpol_func.h | 2 -
src/chromatic_func.c | 57 ++++++++++++++++++++------------
src/chromatic_main.c | 59 +++++++++++++++++++++++----------
src/graph_func.c | 70 ++++++++++++++++++++++++++++++++++++++-
src/graphpol_func.c | 13 +++----
src/list_func.c | 45 ++++++-------------------
src/planar_func.c | 69 +++++++++++++++++++++++++++------------
src/planar_main.c | 37 +++++++++++---------
11 files changed, 302 insertions(+), 137 deletions(-)

debug stub, stress testの追加.
及び,pointer access化でenbugしたviolationをmudflapでdebug'n'fix.
[Added debug stubs and steress test rules.
And then, for debug'n'fix enbugging due to pointer accessing,
added violation detection rules w/ mudflap.]

Mudflap Pointer Debugging - GCC Wiki

mudflapによるviolationの検出を有効にすると,
意外に動作が遅くなるので,
mudflapを無効にした状態で数をこなして,
SIGSEGVを喰らうパターンを記録して,
固定値でmudflapを有効にしてムニャヘニャするの繰り返し.
gdbで対話的にdebugするのもイイけど,これはこれで具合が良い.
と言うか,CFLAGSとかが凄い事になってるなー. :P
[When use mudflap-enabled binary, it makes its runtime speed
awful^H^H^H^H bit of slow.
So, disabled mudflap and do ton of stress test.
Then, collecting some SIGSEGV pattern, do it w/ mudflap enabled binary.
This way would be awesome for my laziness.
BTW, the CFLAGS or so looks like a bit of rice-flavor! :P]
#
# Build options
#
OPT_CFLAGS = -O3
#OPT_CFLAGS += -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec
#F_CFLAGS += -funroll-all-loops -ftree-vectorize -ftracer -fweb
#F_CFLAGS += -fstack-protector -fstack-protector-all
#F_CFLAGS += -fmudflap
F_CFLAGS += -fomit-frame-pointer
W_CFLAGS = -Wall -Werror
#G_CFLAGS =
#G_CFLAGS = -g
#G_CFLAGS = -pg -g -ggdb3
CFLAGS = $(OPT_CFLAGS) $(F_CFLAGS) $(W_CFLAGS) $(G_CFLAGS) -pipe

#AN_LDFLAGS = -Wl,-O3,--as-needed
#LDFLAGS = $(AN_LDFLAGS)
LDFLAGS =

INCs = -I./include
DEFs = -DMAX_LIST_T_LENGTH=10*10
DEFs += -DMAX_GRAPH_T_ORD=10
DEFs += -DMAX_POL_T_SIZE=10
DEFs += -DMAX_FRAGMENTS=10*10/2
DEFs += -DDRAW=1
LIBs = -lc
#LIBs = -lmudflap -lc

0 件のコメント: