would it be possible to make a complied asm cgi language for the web?

or is that like impossible?
cuz i find coding in masm lots easier than cgi

Posted on 2001-10-31 16:21:29 by IcedMonkey
Yes it's possible, just make an console app that uses stdin & stdout for processing (stdin for GET/POST/etc data, stdout for the output), and let your webserver allow executing exe binaries.. Most servers can do this. Then you can use your program like this:


I think there's an example of this at Iczelion's site.

Posted on 2001-10-31 16:40:59 by Thomas
But....Will it work on a Linux server also or only on a Windows based server? this is the question....
Posted on 2001-10-31 17:12:23 by BogdanOntanu
I think that this depends on the compiler you use, i.e. I cant imagine that masm will compile the code in a way so that it runs on linux servers, you might want to use nasm, but im not sure if this was the compiler who produces machine code for both linux and windows. I know that theres a asm compiler for linux freely available at http://www.delorie.com/
Posted on 2001-10-31 19:59:44 by PredeX
hey this is kewl
is there any limitations do you think to this way of programing?
Posted on 2001-10-31 21:27:14 by IcedMonkey
PredeX: assembler, not compiler...

the only thing that really prevents you from using masm for linux
development is that it generates ms-coff files, which no linux linker
that I know of can piece together to ELF executables. Oh yes, and
you'd of course need a windows development machine.

Nasm can assemble to ELF, and you can then use the GNU linker
to link the pieces together.
Posted on 2001-11-01 00:11:41 by f0dder

You can have PE's, MZ's, and the Linux equivilent for CGI programs. You can also write it in C using ported libraries.

You can also write a script/program to compile code (the SysAdmin would kill). The PERL interpreter does this everytime a script is ran.

If you are interested in assembling a PE for Win32, read my article that is in APJ 9. Sometime I'll get around to Tut 4, a simple message board.

I recommend using a language that is the most fun to use.
Posted on 2001-11-01 00:46:25 by eet_1024