How do I compile release and debug versions

Hi all,
the kernel and ko files I compiled are a bit large.
Is there a way to compile ko files smaller?
How do I compile release and debug versions?
Can I strip ko and Image?
Separate the symbol table and load it when I need it.

You can strip the ko file. Default jetpack is with stripped ko files too.

Hi WayneWWW:
After stripping, the kernel has an exception stack, so how can I find the symbol table?