Why are profile-implied niters capped at 99?

2024-10-08 Thread Alex Coplan via Gcc
Hi, I've been looking at GCC's profile information recently. I noticed that the probabilities/counts effectively encode the expected niters of a loop, so e.g. with the following testcase: $ cat t.c int *a; void f() { for (int i = 0; i < N; i++) a[i] = i; } $ ./xgcc -B . -c -S -o /dev/null

[no subject]

2024-10-08 Thread Zhang Zhang via Gcc
ໄດ້ແລ້ວ

Educational question on compiling (analyzing) the C programming language

2024-10-08 Thread Laurent Cimon via Gcc
Hello, I'm a computer science student at the Université Laval in Quebec City. I'm currently following a course on compilers. We're learning semantic analysis at this time and the course is based on the book Compilers: principles, techniques & tools by Alfred V. Aho. While learning L-attributed