Code for GRC blocks

Hi all,I am new to Gnuradio and learnt few tutorials regarding use of
GUI of Gnuradio.How can I find the code of the blocks used in GR
Companion.
RegardsG R Begh

First of all take a look at the generated python file.

The block constructors will be things like gr.head,
digital.chunks_to_symbols_bc. The blocks may be implemented in python,
by
stringing together existing blocks, or they may be implemented in C++.
The
python subpackage (“gr” and “digital” here) indicate what subdirectory
the
files will be in (“gr” corresponds to “gnuradio-core”, “digital” to
“gr-digital”). I then use ‘find’ to get the files of interest.

e.g. (assuming a unix-like system)
$ cd gnuradio-core
$ find . -name “head
./src/lib/general/gr_head.cc
./src/lib/general/gr_head.h
./src/lib/general/gr_head.i
./src/lib/general/gr_skiphead.cc
./src/lib/general/gr_skiphead.h
./src/lib/general/gr_skiphead.i
./src/python/gnuradio/gr/qa_head.py
./src/python/gnuradio/gr/qa_skiphead.py
$ cd …/gr-digital
$ find . -name “chunks_to_symbols
find . -name “chunks_to_symbols
./grc/digital_chunks_to_symbols.xml
./include/digital_chunks_to_symbols_XX.h.t
./lib/digital_chunks_to_symbols_XX.cc.t
./python/qa_chunks_to_symbols.py
./swig/digital_chunks_to_symbols_XX.i.t

Sometimes this won’t find the python hierarchical files.
So for “digital.psk_mod” I’d use something like
$ cd gr-digital
$ grep -r “class psk_mod” .
./python/psk.py:class psk_mod(generic_mod):