LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2014, 04:03 AM   #91
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124

Quote:
Originally Posted by jpollard View Post
In compiler construction, name mangling (also called name decoration) is a technique used to solve various problems caused by the need to resolve unique names for programming entities in many modern programming languages.
Thanks for that. So, in spite of it's scary name, this is just about adding some characters to class and function names to distinguish between those that would otherwise have the same name.

I'm not convinced that adding a few letters to a function name is going to make debugging that much more difficult and my comments about avoiding bugs in the first place still stand.

Quote:
Originally Posted by jpollard View Post
That is to defeat the name mangling that C++ does.
More to the point, it means that you don't have to re-write existing code that is already perfectly adequate. Unless I'm mistaken, you wouldn't even have to re-compile the code.

Quote:
Originally Posted by jpollard View Post
There is no point to using C++ in the kernel if you have to avoid using C++ features.
It's not about taking an "everything is an object" mentality nor is it about reinventing the wheel.

There are times when an object would make more sense than just a plain structure - especially when you have many similar structures and the functions that use them as arguments.

The point is that using C++ to write a kernel would give you more options. You could use C++ features where advantageous to do so while avoiding those "features" that are actually "problems".
 
Old 07-19-2014, 11:55 AM   #92
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
C is as close to hardware as a high level language gets
thus there is no thing you can do in any other programming language that you can not do in C

that, mostly 1:1, relation makes it easier to debug then most other languages

Last edited by genss; 07-19-2014 at 11:58 AM.
 
  


Reply

Tags
arm, c++, compile, fine, kernel, linux, modules


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux kernel development vwal_13 Programming 3 03-09-2005 02:27 AM
Linux Device Driver Development aslv Linux - Certification 0 09-27-2004 08:42 AM
Linux Kernel Development impact on Slackware carboncopy Slackware 5 07-28-2004 03:43 PM
Touch screen driver development for Linux peso Linux - Software 1 02-02-2004 12:15 PM
Lexmark Released A Linux Driver Development Kit FearPasion710 Linux - Software 0 09-09-2003 06:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration