Re: Manipulating C code at the AST level, in C

Liste des GroupesRevenir à col misc 
Sujet : Re: Manipulating C code at the AST level, in C
De : bowman (at) *nospam* montana.com (rbowman)
Groupes : comp.os.linux.misc
Date : 15. Aug 2026, 08:20:57
Autres entêtes
Message-ID : <neaiapFpk4lU4@mid.individual.net>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
User-Agent : Pan/0.165 (Kostiantynivka)
On Fri, 14 Aug 2026 23:47:19 -0400, c186282 wrote:

   Polling, for this sort of thing, has to be
   fast and constant - a big CPU drag. You are
   basically WAITING for something to happen -
   which MAY or may NOT happen at any moment.

I used select() rather than poll() but I'm archaic. Typically the select
call was in the main loop. The timeout was often 1 second. If the call
returned a ready fd you took care of business. If it timed out, then you
did whatever housekeeping was necessary, making sure it wasn't a long
process.

Without the select the main loop would chew up 100% of the CPU. Interrupt
have their place but often complex ISRs are used that aren't any faster
than polling.

Date Sujet#  Auteur
14 Aug 26 * Re: Manipulating C code at the AST level, in C74Nuno Silva
14 Aug 26 +* Re: Manipulating C code at the AST level, in C2Geoff Clare
14 Aug22:10 i`- Re: Manipulating C code at the AST level, in C1Lawrence D’Oliveiro
15 Aug04:47 `* Re: Manipulating C code at the AST level, in C71c186282
15 Aug08:20  +* Re: Manipulating C code at the AST level, in C5rbowman
15 Aug11:33  i+- Re: Manipulating C code at the AST level, in C1The Natural Philosopher
16 Aug03:41  i`* Re: Manipulating C code at the AST level, in C3c186282
16 Aug09:50  i `* Re: Manipulating C code at the AST level, in C2Carlos E. R.
16 Aug20:04  i  `- Re: Manipulating C code at the AST level, in C1rbowman
15 Aug12:07  +* Re: Manipulating C code at the AST level, in C2Jim Jackson
15 Aug12:18  i`- Re: Manipulating C code at the AST level, in C1The Natural Philosopher
15 Aug12:20  `* Re: Manipulating C code at the AST level, in C63Richard Kettlewell
16 Aug09:59   +* Re: Manipulating C code at the AST level, in C55Richard Kettlewell
16 Aug11:42   i`* Re: Manipulating C code at the AST level, in C54The Natural Philosopher
17 Aug05:02   i `* Re: Manipulating C code at the AST level, in C53c186282
17 Aug08:10   i  `* Re: Manipulating C code at the AST level, in C52rbowman
17 Aug09:32   i   +- Re: Manipulating C code at the AST level, in C1Nuno Silva
17 Aug10:13   i   `* Re: Manipulating C code at the AST level, in C50The Natural Philosopher
17 Aug18:15   i    +* Re: Manipulating C code at the AST level, in C2rbowman
17 Aug20:58   i    i`- Re: Manipulating C code at the AST level, in C1The Natural Philosopher
18 Aug03:24   i    `* Re: Manipulating C code at the AST level, in C47c186282
18 Aug07:17   i     +* Re: Manipulating C code at the AST level, in C8rbowman
19 Aug03:11   i     i`* Re: Manipulating C code at the AST level, in C7c186282
19 Aug05:21   i     i +* Re: Manipulating C code at the AST level, in C5rbowman
19 Aug07:26   i     i i+* Re: Manipulating C code at the AST level, in C3c186282
19 Aug14:29   i     i ii`* Re: Manipulating C code at the AST level, in C2The Natural Philosopher
19 Aug20:36   i     i ii `- Re: Manipulating C code at the AST level, in C1rbowman
19 Aug14:28   i     i i`- Re: Manipulating C code at the AST level, in C1The Natural Philosopher
19 Aug14:24   i     i `- Re: Manipulating C code at the AST level, in C1The Natural Philosopher
18 Aug10:19   i     `* Re: Manipulating C code at the AST level, in C38The Natural Philosopher
19 Aug05:11   i      +* Re: Manipulating C code at the AST level, in C26rbowman
19 Aug05:38   i      i+* Re: Manipulating C code at the AST level, in C16Lawrence D’Oliveiro
19 Aug07:35   i      ii+* Re: Manipulating C code at the AST level, in C6rbowman
19 Aug14:31   i      iii`* Re: Manipulating C code at the AST level, in C5The Natural Philosopher
19 Aug20:47   i      iii `* Re: Manipulating C code at the AST level, in C4rbowman
20 Aug14:04   i      iii  `* [off-topic] MA 370 flight disappearance (Was: Re: Manipulating C code at the AST level, in C)3Anton Antimo
20 Aug22:11   i      iii   +- Re: [off-topic] MA 370 flight disappearance (Was: Re: Manipulating C code at the AST level, in C)1rbowman
21 Aug13:32   i      iii   `- Re: [off-topic] MA 370 flight disappearance1The Natural Philosopher
19 Aug07:39   i      ii+- Re: Manipulating C code at the AST level, in C1rbowman
19 Aug08:04   i      ii`* Re: Manipulating C code at the AST level, in C8Lawrence D’Oliveiro
19 Aug20:59   i      ii `* Re: Manipulating C code at the AST level, in C7rbowman
20 Aug01:31   i      ii  `* Re: Manipulating C code at the AST level, in C6The Natural Philosopher
20 Aug04:26   i      ii   `* Re: Manipulating C code at the AST level, in C5rbowman
20 Aug11:50   i      ii    `* Re: Manipulating C code at the AST level, in C4The Natural Philosopher
20 Aug12:06   i      ii     +- Re: Manipulating C code at the AST level, in C1The Natural Philosopher
20 Aug17:51   i      ii     `* Re: Manipulating C code at the AST level, in C2c186282
21 Aug13:34   i      ii      `- Re: Manipulating C code at the AST level, in C1The Natural Philosopher
19 Aug07:30   i      i+- Re: Manipulating C code at the AST level, in C1rbowman
19 Aug23:17   i      i`* Re: Manipulating C code at the AST level, in C8rbowman
20 Aug01:34   i      i +* Re: Manipulating C code at the AST level, in C2The Natural Philosopher
20 Aug04:45   i      i i`- Re: Manipulating C code at the AST level, in C1rbowman
20 Aug04:26   i      i `* Re: Manipulating C code at the AST level, in C5c186282
20 Aug22:40   i      i  `* Re: Manipulating C code at the AST level, in C4rbowman
21 Aug04:42   i      i   `* Re: Manipulating C code at the AST level, in C3c186282
21 Aug07:10   i      i    `* Re: Manipulating C code at the AST level, in C2rbowman
21 Aug14:01   i      i     `- Re: Manipulating C code at the AST level, in C1Lars Poulsen
19 Aug14:15   i      `* Re: Manipulating C code at the AST level, in C11The Natural Philosopher
19 Aug20:39   i       `* Re: Manipulating C code at the AST level, in C10rbowman
20 Aug01:25   i        +* Re: Manipulating C code at the AST level, in C8The Natural Philosopher
20 Aug04:56   i        i`* Re: Manipulating C code at the AST level, in C7rbowman
20 Aug05:46   i        i +* Re: Manipulating C code at the AST level, in C2Lawrence D’Oliveiro
20 Aug05:59   i        i i`- Re: Manipulating C code at the AST level, in C1Lawrence D’Oliveiro
20 Aug22:46   i        i `* Re: Manipulating C code at the AST level, in C4rbowman
21 Aug05:05   i        i  +- Re: Manipulating C code at the AST level, in C1c186282
21 Aug05:35   i        i  +- Re: Manipulating C code at the AST level, in C1rbowman
21 Aug05:54   i        i  `- Re: Manipulating C code at the AST level, in C1c186282
20 Aug05:03   i        `- Re: Manipulating C code at the AST level, in C1rbowman
16 Aug20:13   +* Re: Manipulating C code at the AST level, in C2rbowman
17 Aug06:14   i`- Re: Manipulating C code at the AST level, in C1c186282
17 Aug13:44   `* Re: Manipulating C code at the AST level, in C5Geoff Clare
17 Aug15:31    +* Re: Manipulating C code at the AST level, in C3The Natural Philosopher
18 Aug13:23    i`* Re: Manipulating C code at the AST level, in C2Geoff Clare
18 Aug17:16    i `- Re: Manipulating C code at the AST level, in C1The Natural Philosopher
17 Aug20:27    `- Re: Manipulating C code at the AST level, in C1Richard Kettlewell

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal