Brian has support for automatic generation of C code, detailed in Compiled code.
We also have experimental support for C code generation
more widely, implementing the algorithms described
in Goodman (2010).
This support can be activated using the
usecstdp global preferences
Note that not all code will run without problems using code generation yet, but in most cases it will and speed improvements can be very substantial, especially for STDP.