| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | For loops in C... |
BL> This came out of a tight loop (zmodem?) where I was calling a BL> function in Pascal several times and Paul was using a macro... BL> The Pascal approach ran at HALF speed. When I changed my BL> function to code written several times as you suggest, it was BL> as fast as C and five-times as messy. Calling the function was BL> taking most of the time. RM> Declare the function "inline". Neat, fast, takes a bit more RM> space in the exe. In C, or Pascal? Isn't that what a macro does in C anyway? I can't see much point in using the inline directive in Pascal, unless it is doing the code wrong or you have a specific instruction you want inserted right there. Mostly, the Pascal compiler writes what I would have written inline anyway. Regards, Bob ___ Blue Wave/QWK v2.12 @EOT: ---* Origin: Precision Nonsense, Sydney (3:711/934.12) SEEN-BY: 711/808 934 712/610 @PATH: 711/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™.