I read somewhere that when you develop a kernel in c++, that the new, delete and static_cast keywords require timing references... I was unable to find the site again but my question is, why does these keywords require timing references?
MasterHacker110
-4
Newbie Poster
Recommended Answers
Jump to PostI think it's slightly off, but close. A typical point that is raised when discussing the idea of writing kernel code (or similar high-performance low-level code) in C++ is that operations such as
new
,delete
anddynamic_cast
(notstatic_cast
) do not have a deterministic timing (or latency). In other words, …
Jump to Postthey remove use of things like virtual functions (including destructors) that cannot be deterministic.
I'm not sure of that. It would depend on what parts of the kernel you are talking about. For example, the Linux kernel does use dynamic polymorphism (dynamic dispatching / virtual functions) for its …
All 7 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
rubberman
commented:
Well put - and in some regards I stand corrected. You have waxed more expressive than I was willing to do... :-)
+12
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
MasterHacker110
-4
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.