Like what they do here..
I mean by doing the hack, i.e. write the C programs, do gcc compile link, encrypt etc?
Not just using the hack..

http://chdk.setepontos.com/index.php/board,3.0.html