"Marcelo Marchi" <[EMAIL PROTECTED]> writes: > I need some help from gcc gurus regarding delivering source code.... > I have a application that needs to be delivered to be compiled on my > customer side, BUT it cannot make changes or have any understanding > about code. > This deliver is strong necessary by many reasons, particularly by > changes that will be made in any cases with a tool. Then I need to > know if has some ANSI C compiler that compiles crypto C source files, > or any other solution about this.
gcc has no such facility. Moreover, if gcc did have such a facility, it would be useless, because gcc is free software distributed under the GPL, which means that anybody is permitted to make changes to the compiler. So if gcc were able to read encrypted source code, it would be easy to modify gcc to simply code that code to some other file, thus defeating the encryption. In the fully general case, the kind of protection you are looking for is impossible to achieve. That said, you can probably achieve it with careful implementation in a proprietary compiler. But you can never do it with gcc. Ian