/proc/version contains gcc with which the kernel was compiled
cat /proc/version might print something like Linux version 4.5.0-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Tue Mar 15 09:41:03 CET 2016
/proc/version with the output of uname.