How to execute a remote file with local command

Hello,

I know this is somewhat strange, but please let me know if possible. I want to execute a program file in the remote machine with command on the local machine. Let me make things more clear.

Suppose I have a cc on my local system and do not have that on the remote system. I want to use the 'cc' on my local system to compile the C program file on the remote system.

I know we can use rsh, remsh, ssh for executing the command on the remote system, but the command should be available on the remote system.

Please advise.

Thanks in advance,
Veera.

your machine/remote machine is unix or windows???

And why not copy the c program where the compiler is?

You do know binaries are architecture dependant dont you so whats the point unless they are identical...