🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13386

Re: C vs. Assembly

#13386
From: Michael Sinz - CATS
Date: Tue, 09 Jan 1990 14:59
50 lines
2622 bytes
In article <1125@crash.cts.com> doc@crash.cts.com (Mitch Evans) writes:
>
>Howdy!
>
>	I have a few questions that I hope some kind folks out there in
>modem land can answer:
>
>
>	Is C fast enough to write a BBS program in?  I have seen Pro BBS
>(the source is public domain), and the author says that it is unacceptably
>slow.  Is this because of his style, or because of the language.
>
>	I have been hacking away in Assembly, seeing what I can do with it.
>If there is any way to write the sucker in C, I would prefer that -- as it
>is easier.  BUT, I will write it in assembly if need be.  Which brings me
>to my last question:
>
>	How do I include assembly code in-line in Manx C.  My trials have been
>failures.  How do I address the C variables from the assembly portion.  Any
>comments or examples would be very much appreciated.  THANKS!
> 

For this application, there is no reason why C would be slow at all.  90%
of your time should be MODEM I/O bound and 9.99% would be disk and the rest
is CPU.  (0.01%)  This is a case where the method is more important than
the language/code.  This should even be doable in "slow" languages such as
(close your eyes, 'cause here it comes) BASIC.  (Assuming you can get at
the correct I/O control functions...)

> 
>						Doc
>
>
>-- 
>*****************************************************************************
>ARPA:     crash!doc@nosc.mil
>INET:     doc@crash.CTS.COM
>
>Just because I'm paranoid doesn't mean everyone isn't out to get me...
>*****************************************************************************

(No!  I don't do BASIC...  It was just an extreme case...)

/----------------------------------------------------------------------\
|      /// Michael Sinz -- CATS/Amiga Software Engineer                |
|     ///  PHONE 215-431-9422  UUCP ( uunet | rutgers ) !cbmvax!mks    |
|    ///                                                               |
|\\\///          When people are free to do as they please,            |
| \XX/                they usually imitate each other.                 |
\----------------------------------------------------------------------/
Technical Details
Message-ID: <9263@cbmvax.commodore.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!oliveb!amiga!cbmvax!mks
References: <1125@crash.cts.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!oliveb!amiga!cbmvax!mks
From: mks@cbmvax.commodore.com (Michael Sinz - CATS)
Newsgroups: comp.sys.amiga.tech
Subject: Re: C vs. Assembly
Message-ID: <9263@cbmvax.commodore.com>
Date: 9 Jan 90 14:59:14 GMT
References: <1125@crash.cts.com>
Reply-To: mks@cbmvax.commodore.com (Michael Sinz - CATS)
Organization: Commodore, West Chester, PA
Lines: 50