Random C code generator

Victor Rodriguez vm.rod25@gmail.com
Tue Dec 15 14:37:00 GMT 2015


I am looking for a way to generate random C code to test the size
increment of a FMV ( Function Multi Versioning ) code . i have found
Csmith ( https://embed.cs.utah.edu/csmith/) and it works just fine ,
however I can make it generates a vectorized loop like :

    for (x=0; x<MAX; x++){
        for (i=0; i<256; i++){
            a[i] = b[i] + c[i];

Any suggestion of other random C code generator ?


Victor Rodriguez

More information about the Gcc-help mailing list