[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Low-level vs. High-level programming
- Subject: Re: Low-level vs. High-level programming
- From: pausch@saaf.se (Paul Schlyter)
- Date: Mon, 23 Jun 2003 07:09:54 +0000 (UTC)
- Newsgroups: comp.sys.cbm, comp.sys.apple2, rec.games.video.classic, comp.os.cpm
- Organization: Svensk Amat|rAstronomisk F|rening
- References: <b3qo6h$5ar$1@barad-dur.nas.com> <2N4Ia.587$_d3.499@fe03.atl2.webusenet.com> <rhcIa.7524$nY2.2383@fe07.atl2.web <bd5fsv$qli$5@titan.btinternet.com>
- Xref: archiver1.google.com comp.sys.cbm:59148 comp.sys.apple2:31790 rec.games.video.classic:59298 comp.os.cpm:13494
In article <bd5fsv$qli$5@titan.btinternet.com>,
Kevin Lawton <kepla@btinternet.com> wrote:
> | I would love to see someone control a port at a non-standard address
> | in Basic, Fortran, Cobol, C, C++, etc without using extensions beyond
> | the standard language. The truth is that your statement "If you can
> | do it in asm you can do it in any language that is sufficiently
> | complete." is not quite true. Many computer languages do have
> | limitations built into them. One good example is reentrant code, some
> | can some can not.
>
> Fine, and I would love to oblige you.
> If you would care to give me the address of the hypothetical port, then I
> would be happy to furnish you with examples in Basic (yeauch !), Fortran,
> Cobol
It'll be very hard to do this in Fortran and Cobol unless you use
some compiler specific extension of the language. Sorry....
> and C. Can't really clain to know C++ that well, but might be
> persuaded to give it a try.
In this particular case you can consider C and C++ equivalent: do it
in C, and it will most likely be acceptable as C++ as well.
> Might even be persuaded to give it a go in Forth, Assembler
It's trivial in Forth and assembler...
> and Java too if you ask nicely
How do you get out of the VM in Java? OK, you could use JNI and do
it in C of course..... <g>
> (and pay well).
And what if you fail? Do you refund the money in such a case? <g>
> Please don't ask me to try it in HTML or XML.
--
----------------------------------------------------------------
Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN
e-mail: pausch at stockholm dot bostream dot se
WWW: http://www.stjarnhimlen.se/
http://home.tiscali.se/pausch/