Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #14062
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Event handler in c++ |
| Date | 2012-02-15 16:59 +1300 |
| Message-ID | <9q0osiFtg0U1@mid.individual.net> (permalink) |
| References | (3 earlier) <64c600db-1c76-44c3-9b64-41723d68754a@s7g2000vby.googlegroups.com> <66228237-d278-44c6-a491-471b9073dfa9@hb4g2000vbb.googlegroups.com> <30919923.35.1329214493307.JavaMail.geo-discussion-forums@pbbmr9> <9pvmq7FaapU1@mid.individual.net> <21381630.1044.1329249105974.JavaMail.geo-discussion-forums@pbcvu10> |
On 02/15/12 08:51 AM, 88888 Dihedral wrote: > 在 2012年2月15日星期三UTC+8上午2时17分43秒,Ian Collins写道: >> On 02/14/12 11:14 PM, 88888 Dihedral wrote: >>> >>> C++ is not very good to be usd as a language to >>> write device drives to be called by the OS. >> >> Yes it is, you just have to provide the OS hooks as extern "C" functions. >> >>> People working on the linux kernal talked about this >>> problem for so long. >> >> They are somewhat bigoted. >> > > In the kernal space, the hardware supports and assembler > supports are required. Not on any of the platforms I've written drivers for. >>> Unless functions in the C++ container and template libraries are incorporated into the OS kernal library >>> or system shared linked libraries, otherwise C++ compiled programs are too fat in the heap, too. >> >> "too fat in the heap" ? >> > For example, the hash or map library in C++ > are unreasably large and some are just faking > to be a hash table not of O(1) when there is no hash collision at all. Well obviously a container such as a map will be heavy on the heap. If you can't afford the overhead, don't use them. If you want the convenience, do. Have you ever written device drivers? If so, for which platform(s)? -- Ian Collins
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Event handler in c++ pratik lala <pratik3558@gmail.com> - 2012-01-22 06:42 -0800
Re: Event handler in c++ "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-01-22 16:11 +0100
Re: Event handler in c++ "osmium" <r124c4u102@comcast.net> - 2012-01-22 10:56 -0600
Re: Event handler in c++ Robert Wessel <robertwessel2@yahoo.com> - 2012-01-22 21:32 -0600
Re: Event handler in c++ Christopher <cpisz@austin.rr.com> - 2012-01-24 08:25 -0800
Re: Event handler in c++ Robin Tucker <robinmjtucker@gmail.com> - 2012-02-13 03:52 -0800
Re: Event handler in c++ 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-14 02:14 -0800
Re: Event handler in c++ Ian Collins <ian-news@hotmail.com> - 2012-02-15 07:17 +1300
Re: Event handler in c++ 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-14 11:51 -0800
Re: Event handler in c++ Ian Collins <ian-news@hotmail.com> - 2012-02-15 16:59 +1300
Re: Event handler in c++ MiB <michael.boehnisch@gmail.com> - 2012-02-15 02:11 -0800
Re: Event handler in c++ Ian Collins <ian-news@hotmail.com> - 2012-02-16 07:46 +1300
Re: Event handler in c++ Robert Wessel <robertwessel2@yahoo.com> - 2012-02-15 15:32 -0600
Re: Event handler in c++ MiB <michael.boehnisch@gmail.com> - 2012-02-16 17:56 -0800
Re: Event handler in c++ Rui Maciel <rui.maciel@gmail.com> - 2012-02-15 23:11 +0000
Re: Event handler in c++ pratik lala <pratik3558@gmail.com> - 2012-01-22 16:14 -0800
Re: Event handler in c++ "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-01-23 03:54 +0100
csiph-web