home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!think.com!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!dkuug!diku!terra
- From: terra@diku.dk (Morten Welinder)
- Newsgroups: comp.lang.pascal
- Subject: BP7 -- three more bugs.
- Message-ID: <1993Jan11.131449.5107@odin.diku.dk>
- Date: 11 Jan 93 13:14:49 GMT
- Sender: terra@embla.diku.dk
- Organization: Department of Computer Science, U of Copenhagen
- Lines: 71
-
- Bug report -- BP7, Tools menu.
- Bug report -- BP7, Overflow check, bytevar*number.
- Bug report -- BP7, FPU-Emulator.
-
- The following has been sent to bugs@borland and the Internet
- newsgroup comp.lang.pascal.
-
-
-
- 1. Tools menu -- garbage in error message, missing argument.
- -----------------------------------------------------------
-
- The menu formatting characters "~" show up in error message boxes from
- the tools menu. Example: "Turbo P~r~ofiler."
-
- The tools are called with one argument missing -- Primary.Exe -- when
- the primary program has not been compiled since the Ide was loaded.
-
-
-
- 2. Overflow check wrong for bytevar*number.
- ------------------------------------------
-
- The code
-
- {$Q+}
- Var Target: Byte;
- Begin
- Target:=4;
- Write(Target*9000);
- End.
-
- writes some negative number. The generated code is
-
- ...
- Jnc @@over
- Call System.Overflow
- @@over: Cwd
- Call System.WriteInt
- ...
-
- The "Cwd" shows that the result of "Target*9000" is an integer. However,
- "Jnc" should have been "Jno" in that case. It's is not known whether
- correct pascal code may produce wrong error messages.
-
-
-
- 3. The linker and FPU-emulator are in conflict concerning 386.
- -------------------------------------------------------------
-
- The standalone assembler accepts the code
-
- Emul
- P386
- P387
- Fld [Dword Ptr Fs:0]
-
- and generates an "emulation fixup." The linker of BP7 however ignores
- the fixup! The result is code that will run perfectly when a coprocessor
- is present, hang if not.
-
- The emulator does not support "Fs:", "Gs:", and 32-adressing. Either it
- should or the linker should reject the object file.
-
-
-
- --
- ------------------------------------------------------------------------
- Visit the lyrics archive at ftp.cs.uwp (mirrored to nic.funet.fi, a site
- in Finland). All kinds of lyrics available -- upload "yours" and join.
- ------------------------------------------Morten Welinder, terra@diku.dk
-