| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Speed Pascal |
In a message to Paul West Allan Mertner wrote:
AM> 4) {$I-} is not a compiler directive, but a statement. Instead of
AM> instructing the compiler to generate different code, it simply causes
AM> a "RaiseIOError := True" statement to be inserted in the code. This
AM> means, that it cannot be used outside Begin..End blocks, for example
AM> in the beginning of a unit. It also means that the state of I/O
AM> checking can be changed by Pascal code, as in the example:
AM> {$I-}
AM> Reset(f)
AM> ...
AM> If x = 0 then Exit;
AM> {$I+}
AM>
AM> If x is 0, the I+ statement is never executed. Sad.
OUCH!
That explains some problems I was having porting some of my older utility
routines over. It's a serious problem with compatability, but for new
code, as long as you are carefull, shouldn't be a real problem.
AM> Text-mode apps written in SP require a 27kB DLL KBDVIO32.DLL to run.
AM> This is because SP not supports thunking calls to 16-bit API
AM> functions - and all of the text-mode Vio, Mou and Kbd calls are 16
AM> bit. The DLL is written in C and cannot be written in Speed-Pascal.
AM> If you want to access other 16-bit API calls, you need to write
AM> another thunking DLL for it - but not in SP...
Now that could be a real problem. If I have to write stuff in C to get
Speed up and running, I may as well write C in the first place.
I guess I'll have to take another look at VP. I was hoping SP would be the answer.
... For sale: Hourglass for timing Windows.
--- JMail-G 2.80c
* Origin: Programmers Information Exchange 1-206-334-9243 (1:343/27)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 343/500 1 138/103 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.