Re: how to read linux kernel source with pycparser

2016-10-13 Thread Michael Torrie
On 10/13/2016 02:19 AM, meInvent bbird wrote: > is it possible to git pull a part of directory such as sched > and compile this subdirectory and pycparser it? I'm sure you could but it wouldn't help you. The parts of the kernel are modular but you can't compile them without configuring the whole

Re: how to read linux kernel source with pycparser

2016-10-13 Thread meInvent bbird
is it possible to git pull a part of directory such as sched and compile this subdirectory and pycparser it? i got error when run gcc -E git submodule add he...@github.com:hello/repo.git kernel/sched cd kernel/sched git pull martin@ubuntu:~/Downloads/kernel/sched$ gcc -E -std=c99 *.c # 1 "auto_g

Re: how to read linux kernel source with pycparser (Reposting On Python-List Prohibited)

2016-10-04 Thread meInvent bbird
yes, i searched in google between 2011 and 2012 descending for loop is faster than ascending for loop On Wednesday, October 5, 2016 at 9:48:41 AM UTC+8, Chris Angelico wrote: > On Wed, Oct 5, 2016 at 12:41 PM, meInvent bbird wrote: > > so far i do not know which bug i search for > > > > i would

Re: how to read linux kernel source with pycparser (Reposting On Python-List Prohibited)

2016-10-04 Thread Chris Angelico
On Wed, Oct 5, 2016 at 12:41 PM, meInvent bbird wrote: > so far i do not know which bug i search for > > i would like to change style of for loop > > form ascending to descending style > > for(int i=0; i<3; ++i) > > to > > for(int i=3; i>=0; --i) > > or > > most crazy to change if else if else int

Re: how to read linux kernel source with pycparser (Reposting On Python-List Prohibited)

2016-10-04 Thread meInvent bbird
On Wednesday, October 5, 2016 at 2:34:49 AM UTC+8, Lawrence D’Oliveiro wrote: > On Tuesday, October 4, 2016 at 10:38:14 PM UTC+13, meInvent bbird wrote: > > how to customize pycparser to search what we want such as bug > > What kind of bug do you want to search for? so far i do not know which bu

Re: how to read linux kernel source with pycparser

2016-10-04 Thread Michael Torrie
On 10/04/2016 03:36 AM, meInvent bbird wrote: > i expect to use pycparser to read linux kernel source > and get a AST tree, > > but there are so many directory, > > how to read linux kernel source with pycparser? > > how to customize pycparser to search what we want such as bug or fix > to ma