Skip to main content
  1. Projects/

CError

·103 words·1 min
Jake Roggenbuck
Author
Jake Roggenbuck
I am currently studying Computer Science

CError #

Run cerror on a source code file of a compiled language to get the length of the outputted error compared to the filesize. Some people try to get the largest error with the smallest file, this script gives you a score for this.

Use (in general) #

#include __FILE__

credit: @adamhutchings for finding this

The sample file is above, this is a small amount of source but produces a large error. This would get a really good score because of that ratio of code to error.

Use (the script) #

./cerror -f main.c -c g++
./cerror -f <filename> -c <compiler name>