Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 123Reputation: 123

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.

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.

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, 12:55 PM   #92
Registered: Nov 2013
Posts: 739

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 12:58 PM.


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 03:27 AM
Linux Device Driver Development aslv Linux - Certification 0 09-27-2004 09:42 AM
Linux Kernel Development impact on Slackware carboncopy Slackware 5 07-28-2004 04:43 PM
Touch screen driver development for Linux peso Linux - Software 1 02-02-2004 01:15 PM
Lexmark Released A Linux Driver Development Kit FearPasion710 Linux - Software 0 09-09-2003 07:18 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:55 PM.

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