Click here to Skip to main content
12,953,541 members (50,776 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Espen Harlinn1-Mar-12 9:55
mvpEspen Harlinn1-Mar-12 9:55 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
PIEBALDconsult1-Mar-12 11:00
memberPIEBALDconsult1-Mar-12 11:00 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Espen Harlinn1-Mar-12 11:05
mvpEspen Harlinn1-Mar-12 11:05 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw2-Mar-12 5:30
memberRussell Ranshaw2-Mar-12 5:30 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Sanmayce3-Mar-12 6:15
memberSanmayce3-Mar-12 6:15 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw3-Mar-12 8:33
memberRussell Ranshaw3-Mar-12 8:33 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Sanmayce3-Mar-12 8:50
memberSanmayce3-Mar-12 8:50 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw3-Mar-12 10:46
memberRussell Ranshaw3-Mar-12 10:46 
"I defined a variable as a register and guess what despite the desperate need of this C has had other agenda - I mean C is good Assembly is best."

Well, ideally C ought to be kept distinct from processor specific features. Unfortunately, as I mentioned in my first post, such have been part and parcel of the language since its original specification. Or soon after. In fact, I for one would love to see the ++x/--x et al removed from the language, as they ARE based on the capabilities of the PDP-11.

That aside, I have ported C to the 6502, 6800, and even the PDP-10 processors, retaining various portions of the language as were feasible on a particular CPU. They worked very well. Yes, I had to rely on assembly code for the "down and dirty" things.

But not all CPUs have addressable registers, which would make such a capability in C a tad awkward, to say the least. To quote the Bible (sort of): "Render unto the assembler that which is the assembler's."
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Sanmayce5-Mar-12 4:18
memberSanmayce5-Mar-12 4:18 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw5-Mar-12 5:09
memberRussell Ranshaw5-Mar-12 5:09 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Sanmayce5-Mar-12 6:03
memberSanmayce5-Mar-12 6:03 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw7-Mar-12 6:11
memberRussell Ranshaw7-Mar-12 6:11 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Sanmayce8-Mar-12 8:36
memberSanmayce8-Mar-12 8:36 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw8-Mar-12 9:11
memberRussell Ranshaw8-Mar-12 9:11 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Sanmayce9-Mar-12 7:54
memberSanmayce9-Mar-12 7:54 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw9-Mar-12 10:00
memberRussell Ranshaw9-Mar-12 10:00 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw12-Mar-12 11:10
memberRussell Ranshaw12-Mar-12 11:10 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Sanmayce14-Mar-12 8:03
memberSanmayce14-Mar-12 8:03 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw16-Mar-12 2:18
memberRussell Ranshaw16-Mar-12 2:18 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Sanmayce16-Mar-12 9:05
memberSanmayce16-Mar-12 9:05 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Russell Ranshaw17-Mar-12 5:07
memberRussell Ranshaw17-Mar-12 5:07 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Oshtri Deka1-Mar-12 10:18
memberOshtri Deka1-Mar-12 10:18 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
PIEBALDconsult1-Mar-12 11:01
memberPIEBALDconsult1-Mar-12 11:01 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Rob Ford 22-Mar-12 3:06
memberRob Ford 22-Mar-12 3:06 
GeneralRe: Are there reasons for beginner programmers to learn C ? Pin
Oshtri Deka2-Mar-12 9:50
memberOshtri Deka2-Mar-12 9:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 27 May 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid