2007-02-08から1日間の記事一覧
GCCの最適化について試してみたんですよ。 /usr/local/gcc4.3/bin/gcc -O3 -march=pentium4 -mtune=pentium4で。 int main(){ char*s = malloc(10); char*t = malloc(10); *s++=*t++; *s++=*t++; *s++=*t++; *s=*t; free(s); free(t); return 0; } mallocはb…
GCCの最適化について試してみたんですよ。 /usr/local/gcc4.3/bin/gcc -O3 -march=pentium4 -mtune=pentium4で。 int main(){ char*s = malloc(10); char*t = malloc(10); *s++=*t++; *s++=*t++; *s++=*t++; *s=*t; free(s); free(t); return 0; } mallocはb…