Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #2582
| From | Hans-Peter Diettrich <DrDiettrich1@netscape.net> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Parsing using a Graphics Processing Unit (GPU)? |
| Date | 2020-09-02 22:34 +0200 |
| Organization | Compilers Central |
| Message-ID | <20-09-011@comp.compilers> (permalink) |
| References | <20-09-001@comp.compilers> <20-09-002@comp.compilers> <20-09-008@comp.compilers> |
Am 02.09.2020 um 11:13 schrieb Jan Ziak: > On Tuesday, September 1, 2020 at 6:03:27 PM UTC+2, Christian Gollwitzer wrote: >> The parser reads the input as a stream of >> tokens; you can't split the C file at some arbitrary point in half and >> parse both parts independently. > > Of course you can split asm/C/C++/Go/Python/Rust/etc file at arbitrary > points: Certainly not for C/C++. The preprocessor and included files modify the original source. That's one of the reasons for the slow C/C++ compilation. > when the state of the lexical analyzer collapses to a single > state starting from a random file position with an arbitrary starting > state. If you mean the lexer by "lexical analysis", that's only a front end for the parser. A compiler needs more state and context information like symbol tables, which can not be built from arbitrary parts of a source file. DoDi [One can certainly pipeline the C preprocessor and later phases but I'm guessing that's not what you're talking about here. -John]
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
Parsing using a Graphics Processing Unit (GPU)? Roger L Costello <costello@mitre.org> - 2020-08-31 10:35 +0000
Re: Parsing using a Graphics Processing Unit (GPU)? Christian Gollwitzer <auriocus@gmx.de> - 2020-09-01 09:22 +0200
Re: Parsing using a Graphics Processing Unit (GPU)? Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2020-09-01 19:02 +0200
Parsing using a Graphics Processing Unit (GPU)? Christopher F Clark <christopher.f.clark@compiler-resources.com> - 2020-09-02 01:14 +0300
Re: Parsing using a Graphics Processing Unit (GPU)? Jan Ziak <0xe2.0x9a.0x9b@gmail.com> - 2020-09-02 02:13 -0700
Re: Parsing using a Graphics Processing Unit (GPU)? Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2020-09-02 22:34 +0200
Re: Parsing using a Graphics Processing Unit (GPU)? "A. K." <minforth@arcor.de> - 2020-09-01 01:25 -0700
Re: Parsing using a Graphics Processing Unit (GPU)? arnold@skeeve.com (Aharon Robbins) - 2020-09-02 05:43 +0000
Re: Parsing using a Graphics Processing Unit (GPU)? Elijah Stone <elronnd@elronnd.net> - 2020-09-01 20:13 -0700
Re: Parsing using a Graphics Processing Unit (GPU)? Roger L Costello <costello@mitre.org> - 2020-09-02 11:45 +0000
Re: Parsing using a Graphics Processing Unit (GPU)? Christopher F Clark <christopher.f.clark@compiler-resources.com> - 2020-09-02 17:57 +0300
Re: Parsing using a Graphics Processing Unit (GPU)? gah4 <gah4@u.washington.edu> - 2020-09-09 14:09 -0700
csiph-web