473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

c++ questions.

so far i've learned from various sources about c++'s high level
abilities, such as how to use c++ to solve topcoder problems, write a
binary search tree, pointers, stacks queues.etcetc.
But where does c++ fit in, say, in driver development? I've always saw
people saying c++'s low level abilities ( or C ) on the internet, but I
have no idea how pointer is a low level tool ( other than modifying a
block of memory if wanted) About manipulating memory with pointers,
doen't OS shield one app from another when app launches( in protected
mode flat model)? than how is pointer useful in that way? through the
use of OS API?
thanks!

Jun 22 '06 #1
4 1354

<ch*******@gmail.com> wrote in message
news:11**********************@r2g2000cwb.googlegro ups.com...
so far i've learned from various sources about c++'s high level
abilities, such as how to use c++ to solve topcoder problems, write a
binary search tree, pointers, stacks queues.etcetc.
But where does c++ fit in, say, in driver development? I've always saw
people saying c++'s low level abilities ( or C ) on the internet, but I
have no idea how pointer is a low level tool ( other than modifying a
block of memory if wanted) About manipulating memory with pointers,
doen't OS shield one app from another when app launches( in protected
mode flat model)? than how is pointer useful in that way? through the
use of OS API?

I think you answered your own question there. They won't talk about the API
around here but they will tell you about the c++ part of working with it
when you come with a specific question. Unless you experience a different
usenet than I do, you'll find it hard to find people who have good advice to
give on APIs (these guys prefer to work for money). cheers, f
Jun 22 '06 #2
ch*******@gmail.com wrote:
But where does c++ fit in, say, in driver development? I've always saw
people saying c++'s low level abilities ( or C ) on the internet, but I
have no idea how pointer is a low level tool ( other than modifying a
block of memory if wanted) About manipulating memory with pointers,
doen't OS shield one app from another when app launches( in protected


In many operating systems a driver is not an app. And how to write drivers
is very specific of each. Thus, better ask in newsgroups about your
favorite operating systems.

--
Salu2

Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
Jun 22 '06 #3
chy1013m1 wrote:
so far i've learned from various sources about c++'s high level
abilities
Oh, like STL, parsing, locales, etc.?
such as how to use c++ to solve topcoder problems, write a
binary search tree, pointers, stacks queues.etcetc.
Those are low level. Feel free to learn them, but on a job use them
sparingly. Go to STL first.
But where does c++ fit in, say, in driver development?
OSs implement drivers as polymorphic entities. An OS is essentially a common
kernel that maintains an array of handles to drivers, and treats each one
with the same interface. That's why a Un*x, for example, exposes those
handles in its /dev folder.

C++ handles polymorphism very nicely, as classes, and OSs typically don't
use that system. They use C's system of pointers to functions. Each driver
comes with a block of pointers, and the interface is all the functions.

Because C++ can easily compile modules compatible with C,
I've always saw
people saying c++'s low level abilities ( or C ) on the internet, but I
have no idea how pointer is a low level tool ( other than modifying a
block of memory if wanted)
You wrote binary search trees, right?
About manipulating memory with pointers,
doen't OS shield one app from another when app launches( in protected
mode flat model)? than how is pointer useful in that way? through the
use of OS API?


The OS typically recognizes modules loaded at a certain time, or loaded from
certain regions, or something. It recognizes them as kernel modules, and
allows them to pass such pointers into special functions that convert them
into special OS-level pointers. These can then reach across module
boundaries.

Further speculation belongs on a kernel newsgroup, but because C++ can do
anything C can, it will work fine in the kernel. Most drivers are old, and
come from old code lineages, so they use C, but that's the only reason.

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
Jun 22 '06 #4

"Phlip" <ph******@yahoo.com> wrote in message
news:cn*******************@newssvr11.news.prodigy. com...
chy1013m1 wrote:
so far i've learned from various sources about c++'s high level
abilities


Oh, like STL, parsing, locales, etc.?
such as how to use c++ to solve topcoder problems, write a
binary search tree, pointers, stacks queues.etcetc.


Those are low level. Feel free to learn them, but on a job use them
sparingly. Go to STL first.

I knew that was one of the OP's mistakes, but I didn't see a constructive
way to point it out.
But where does c++ fit in, say, in driver development?


OSs implement drivers as polymorphic entities. An OS is essentially a
common kernel that maintains an array of handles to drivers, and treats
each one with the same interface. That's why a Un*x, for example, exposes
those handles in its /dev folder.

C++ handles polymorphism very nicely, as classes, and OSs typically don't
use that system. They use C's system of pointers to functions. Each driver
comes with a block of pointers, and the interface is all the functions.

Because C++ can easily compile modules compatible with C,

Interesting statements here. Must the non-c++ module have paid any
attention to, say, typedefs?
I've always saw
people saying c++'s low level abilities ( or C ) on the internet, but I
have no idea how pointer is a low level tool ( other than modifying a
block of memory if wanted)


You wrote binary search trees, right?
About manipulating memory with pointers,
doen't OS shield one app from another when app launches( in protected
mode flat model)? than how is pointer useful in that way? through the
use of OS API?


The OS typically recognizes modules loaded at a certain time, or loaded
from certain regions, or something. It recognizes them as kernel modules,
and allows them to pass such pointers into special functions that convert
them into special OS-level pointers. These can then reach across module
boundaries.

Further speculation belongs on a kernel newsgroup, but because C++ can do
anything C can, it will work fine in the kernel. Most drivers are old, and
come from old code lineages, so they use C, but that's the only reason.

The reason for it "still" being C is then that it hasn't broken yet and can
be manipulated by c++? cheers, f
Jun 22 '06 #5

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

Similar topics

0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
4
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
8
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
1
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...
0
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
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...

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.