472,982 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,982 software developers and data experts.

What can C do and Basic V2 not?

I still donīt get it - what is the advantage of C ?

I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ?

Seems to be more cryptic than BASIC to me.
Nov 14 '05 #1
12 1406
"Ralf Dieholt" <za*******@yahoo.se> wrote in message
news:7a**************************@posting.google.c om...
I still donīt get it - what is the advantage of C ?
Portability, efficiency, readability, in that order.
I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ?
Yes.
Seems to be more cryptic than BASIC to me.


Then use BASIC if you wish. Or learn C. Every new language looks more
cryptic than the one you already know. This applies to natural just as well
as programming languages.
Nov 14 '05 #2
Ralf Dieholt wrote:
I still don?t get it - what is the advantage of C ?

I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ?

Seems to be more cryptic than BASIC to me.


Please don't feed this troll.

Kurt Watzka
Nov 14 '05 #3
Ralf Dieholt wrote:
I still donīt get it - what is the advantage of C ? None... Well, almost none.
I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ? see above.
Seems to be more cryptic than BASIC to me.

Well, that *is* actually the advantage of C.

Bruno

Nov 14 '05 #4
Ralf Dieholt wrote:
I still don't get it - what is the advantage of C ?
It's crunchy, courteous, and corrugated.
I can program anything in BASIC V2 on a C64,
Fabulous!
does C have any
advantages over BASIC V2 ?
No. There are some programs you can't write in C (such as, for example, a
program that can detect, for any input program, whether that program
halts). Since you can program anything in BASIC V2, I guess you have the
edge.
Seems to be more cryptic than BASIC to me.


Yeah, it's to keep the cabal happy. Don't tell anyone.
--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #5

"Ralf Dieholt" <za*******@yahoo.se> wrote in message

I still donīt get it - what is the advantage of C ?
It is efficient and it is expressive.
I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ?
All major programming languages are Turing equivalent, which means that
given enough memory you can emulate any with any other. It follows that you
can write a C interpreter in BASIC. However you will find a BASIC
interpreter in C runs faster and is easier to code.
Seems to be more cryptic than BASIC to me.

This is a very valid criticism. BASIC is designed to allow people who are
not full-time programmers to do some programming, and it is very good at
that job. C is designed with professionals in mind, and operations such as
indirection are very concise, because a professional computer programmer can
be presumed to understand them.
Nov 14 '05 #6
On 22 Feb 2004 03:28:56 -0800, in comp.lang.c , za*******@yahoo.se (Ralf
Dieholt) wrote:
I still donīt get it - what is the advantage of C ?
Thats like asking whats the advantage of a truck, when you already have a
mini.
I can program anything in BASIC V2 on a C64,
what, /everything/ ?
A relational database capable of storing 4GB of data?
A settlement system for government bonds?
A real-life-speed jumbo-jet-sized 3d flight simulator?

Its probable that you can program many many things in Basic, but not all of
them efficiently, and not all of them well. This is true of most languages.
C for example is not good for object oriented programming, compared to C++.
does C have any advantages over BASIC V2 ?
Will your Basic V2 work on a Vax, PC or Sparc? I suspect not.
Your (ISO compliant) C will work on all three, plus many more.

There are many other reasons, but really, its an exercise for hte reader to
work out why language Z is more useful than language Q for some things.
Seems to be more cryptic than BASIC to me.


Basic is a high level language, C is a lower level one.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #7

"Mark McIntyre" <ma**********@spamcop.net> wrote in message
news:8n********************************@4ax.com...
On 22 Feb 2004 03:28:56 -0800, in comp.lang.c , za*******@yahoo.se (Ralf
Dieholt) wrote:

does C have any advantages over BASIC V2 ?


Will your Basic V2 work on a Vax, PC or Sparc? I suspect not.
Your (ISO compliant) C will work on all three, plus many more.


I am not a professional and don't know much, but I am curious.
I assume this is only because there have been C compilers written for these
and the "many more."
When a chip company designs a new processor, is a C compiler usually
provided for programmers by the company? What about other languages? Who
is "normally" responsible for these things?
Nov 14 '05 #8
Stephen Mayes wrote:
"Mark McIntyre" <ma**********@spamcop.net> wrote in message
news:8n********************************@4ax.com...
On 22 Feb 2004 03:28:56 -0800, in comp.lang.c , za*******@yahoo.se (Ralf
Dieholt) wrote:
does C have any advantages over BASIC V2 ?


Will your Basic V2 work on a Vax, PC or Sparc? I suspect not.
Your (ISO compliant) C will work on all three, plus many more.

I am not a professional and don't know much, but I am curious.


Good.
I assume this is only because there have been C compilers written for these
and the "many more."
Halfway true. The other half is that the ISO standard exists to
guarantee the behavior of C programs compiled with a conformant compiler
/regardless/ of what machine the program is compiled on or for. This
standard dictates a certain group of behaviors programmers can rely
upon, whether they are writing new programs or compiling a pre-written
program for a new machine.
When a chip company designs a new processor, is a C compiler usually
provided for programmers by the company? What about other languages? Who
is "normally" responsible for these things?
The chipmaker might design a compiler for their chips, as Intel has, but
they don't always. The group "normally" responsible for these things is
whoever wants a C compiler for that machine.

The GNU Project has done a good job of porting their gcc (GNU Compiler
Collection) compiler suite to different architectures, and as the gcc
suite can act as a conformant C compiler (up to the C89 standard, I
believe), any machine for which a version of gcc exists has a conformant
C compiler.

In any case, it isn't difficult to create a compiler for a new machine
if you already have a compiler for an existing machine you can examine
the source code of. Especially if that compiler has a modular design, as
gcc does, with a language-specific front-end (which emits RTL (Register
Transfer Language)) and a machine-specific backend (which emits assembly
language). Then the problem is reduced to writing a backend.

--
My address is yvoregnevna gjragl-guerr gjb-gubhfnaq guerr ng lnubb qbg pbz
Note: Rot13 and convert spelled-out numbers to numerical equivalents.
Nov 14 '05 #9
On Sun, 22 Feb 2004 18:47:48 -0500, in comp.lang.c , "Stephen Mayes"
<st*****@DELETEthemayeshouse.us> wrote:

"Mark McIntyre" <ma**********@spamcop.net> wrote in message
news:8n********************************@4ax.com.. .
On 22 Feb 2004 03:28:56 -0800, in comp.lang.c , za*******@yahoo.se (Ralf
Dieholt) wrote:
>does C have any advantages over BASIC V2 ?


Will your Basic V2 work on a Vax, PC or Sparc? I suspect not.
Your (ISO compliant) C will work on all three, plus many more.


I am not a professional and don't know much, but I am curious.
I assume this is only because there have been C compilers written for these
and the "many more."


Partly. Its because C is governed by an ISO standard, and that core of C is
guaranteed to work on all platforms for which a C compiler exists. On the
other hand I've yet to find a variant of basic that worked on any other
platform without massive alterations, and I suspect that "Basic V2" is the
same.
When a chip company designs a new processor, is a C compiler usually
provided for programmers by the company?
Thats entirely up to them,
What about other languages?
ditto
Who is "normally" responsible for these things?
whoever believes there's a commercial need for the language tools, or in
some cases whoever wants one.


--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #10

"Stephen Mayes" <st*****@DELETEthemayeshouse.us> wrote in
When a chip company designs a new processor, is a C compiler
usually provided for programmers by the company? What about
other languages? Who is "normally" responsible for these things?
C is such a widely-used language that often chips are designed so that C
compilers are easy to optimise. Generally a chip manufacturer will provide a
C compiler to kick-start the chip, show how it can be done, and because C is
relatively easy to implement. Other languages will usually be provided by
specialists in that language, if there is a demand for them. However these
aren't hard and fast rules. If the chip is used in a general-purpose
computer, for example, the chip company won't usually be interested in
providing libraries for the operating system, and a company that provides
development systems will often implement a compiler whilst they are at it.

Nov 14 '05 #11
In <7a**************************@posting.google.com > za*******@yahoo.se (Ralf Dieholt) writes:
I still donīt get it - what is the advantage of C ?

I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ?


Write an Unix-like operating system in BASIC V2 and you might get an idea.
Don't come back until finishing the project!

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #12
Da*****@cern.ch (Dan Pop) wrote in message news:<c1**********@sunnews.cern.ch>...
Write an Unix-like operating system in BASIC V2 and you might get an idea.


where is the problem ...

10 print "This is UNIX"
20 goto 10

UNIX-like, isn't it?

Greets
S.
Nov 14 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
20
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external...
5
by: opistobranchia | last post by:
I know this gets asked all the time but..... I am a fresh grad. I have taken a year of java and 1/2 year of C++ and OO Design and Analysis. I have strong Java skills and I have done projects in...
1
by: siliconmike | last post by:
I'm starting to learn Visual Basic. My aim is to develop a small downloadable application that can store and display contacts. It has to be small (say 2 mb footprint?). Q - First, will Visual...
3
by: Sathyaish | last post by:
I wanted to practice some Linked List stuff, so I set out to create a linked list. The plan was to create the following: (1) A linked list class in Visual Basic (2) A non-class based linked list...
41
by: Mountain Bikn' Guy | last post by:
What is the current preferred way to save user preferences in dotnet? Is the registry the right place to do this? Can anyone recommend a good article (or book) for this topic? Thanks.
3
by: notregister | last post by:
Selected& = Device_Display.ListIndex sometime i do see $ replacing the &, what does it mean also?
50
by: lovecreatesbea... | last post by:
Could you extract examples of the characteristics of C itself to demonstrate what the advantages of C are? What are its pleasant, expressive and versatile characteristics? And what are its...
11
by: Paul Brady | last post by:
Apparently, I have been living on the wrong planet. I have written 15 databases in Microsoft Access in the past 10 years, some of which are split, one uses ODBC interface with a SQL server, one...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.