Link to line number

This commit is contained in:
Justin Ethier 2017-06-16 00:01:51 -04:00
parent 07f6eb3ae5
commit 9546de1714

View file

@ -24,7 +24,7 @@ One of the easiest things to do is run a profiler on the code to figure out what
A compiled Cyclone program is just a regular C program so we can use the standard GNU tools for profiling and debugging. A compiled Cyclone program is just a regular C program so we can use the standard GNU tools for profiling and debugging.
To get started we change [`Makefile.config`](https://github.com/justinethier/cyclone-bootstrap/blob/master/Makefile.config) in cyclone-bootstrap to enable profiling. The `-O2` option in the lines below are replaced with `-g -pg`: To get started we change [`Makefile.config`](https://github.com/justinethier/cyclone-bootstrap/blob/master/Makefile.config#L8) in cyclone-bootstrap to enable profiling. The `-O2` option in the lines below are replaced with `-g -pg`:
CFLAGS ?= -g -pg -fPIC -rdynamic -Wall -Iinclude -L. CFLAGS ?= -g -pg -fPIC -rdynamic -Wall -Iinclude -L.
COMP_CFLAGS ?= -g -pg -fPIC -rdynamic -Wall -I$(PREFIX)/include -L$(PREFIX)/lib COMP_CFLAGS ?= -g -pg -fPIC -rdynamic -Wall -I$(PREFIX)/include -L$(PREFIX)/lib