473,509 Members | 6,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1429
"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
6929
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
3197
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
1361
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
1946
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
2066
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
3372
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
1192
by: notregister | last post by:
Selected& = Device_Display.ListIndex sometime i do see $ replacing the &, what does it mean also?
50
8478
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
2469
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
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.