V
Vijoy Varghese
Hello Group
I have a doubt.
The programs written in 'C' language *.c is compiled to *.obj and then
linked to *.exe which is the 'machine language' substitute for our *.c
program, right? Now for a processor to execute any program, the
program should be coded in a language which the processor can
understand, and here in our case the *.exe is such a language (or may
be one level above the 'language processor can understand', and our
Operating System does the translation work for the processor). So what
ever it be, the *.exe is close to the language which the processor can
understand.
Now, a CGI program written in Perl, *.cgi there is no compilation or
linking. That is each time we try to activate this program the Perl
interpreter have to convert it to the *.exe format(or directly to hard
core machine language of 0's and 1's?) and this process is repeated
during all activation of the *.cgi script, right?
So this is a kind of overhead when a same script is activated some
1000 time in a minute, right? But still people are using Perl for CGI
scripting, why? Yes, Perl is fun, its always fun to program using a
language which remind us more of a 'natural language' rather than a
'programming language'. But still, why don’t some one make a
'Compiled Perl' with all features of current Perl, but which can be
compiled to machine language, so that there is no need to 'translate'
it each time its activated.
Or is there is already one available? I have heard a lot about
'mod_perl' and that it increases the speed of CGI scripts by some 100
times. Is that have something to do with the 'compiled' version :-/
I am expecting a lot of '@#$#$%$@' replies, because I know this is not
the way to ask questions in a group. But friends, this doubt... its
hunting me for a long time, and i cant find a convincing answer
anywhere. :-(
Waiting for your replies or some pointers where I can find answer to
my doubt.
Thanking you all
Regards
Vijoy Varghese
I have a doubt.
The programs written in 'C' language *.c is compiled to *.obj and then
linked to *.exe which is the 'machine language' substitute for our *.c
program, right? Now for a processor to execute any program, the
program should be coded in a language which the processor can
understand, and here in our case the *.exe is such a language (or may
be one level above the 'language processor can understand', and our
Operating System does the translation work for the processor). So what
ever it be, the *.exe is close to the language which the processor can
understand.
Now, a CGI program written in Perl, *.cgi there is no compilation or
linking. That is each time we try to activate this program the Perl
interpreter have to convert it to the *.exe format(or directly to hard
core machine language of 0's and 1's?) and this process is repeated
during all activation of the *.cgi script, right?
So this is a kind of overhead when a same script is activated some
1000 time in a minute, right? But still people are using Perl for CGI
scripting, why? Yes, Perl is fun, its always fun to program using a
language which remind us more of a 'natural language' rather than a
'programming language'. But still, why don’t some one make a
'Compiled Perl' with all features of current Perl, but which can be
compiled to machine language, so that there is no need to 'translate'
it each time its activated.
Or is there is already one available? I have heard a lot about
'mod_perl' and that it increases the speed of CGI scripts by some 100
times. Is that have something to do with the 'compiled' version :-/
I am expecting a lot of '@#$#$%$@' replies, because I know this is not
the way to ask questions in a group. But friends, this doubt... its
hunting me for a long time, and i cant find a convincing answer
anywhere. :-(
Waiting for your replies or some pointers where I can find answer to
my doubt.
Thanking you all
Regards
Vijoy Varghese