<pepijndevos_>
daveshah, I'm building nextpnr in debug mode, but it's still -O3 and removing all my stuff I'm trying to debug. I googled around a bit and found a few CFLAGS hacks, but in this case it results in both -O3 and -O0 being added...
<daveshah>
I usually end up just hacking the CMakeLists with the exact cflags I want
<pepijndevos_>
hmkay
<pepijndevos_>
but... how? Whatever I put it just ends up adding a whole bunch Wall -fPIC -O3 -g -pipe -fPIC -std=gnu++11 so I'm clearly adding it in the wrong place or using the wrong variable
<daveshah>
I don't know why CMake likes to use CMAKE_CXX_FLAGS_RELEASE for a debug build, but it does tend to ime so I just edit them
<pepijndevos_>
heh...
<pepijndevos_>
Coool, I can read an integer from a bba
<omnitechnomancer>
\o/
<omnitechnomancer>
Otherwise put the stuff you want to look at in the debugger into a black box and it will force the optimizer to keep it
<pepijndevos_>
A push also acts as a label, I suppose, right?
<daveshah>
I don't know the gritty details of bba that well, tbh
<daveshah>
better to ask claire
<pepijndevos_>
or just experiment...
<pepijndevos_>
I wonder if somewhere in icestorm there is a handy library, or it would be just as easy to roll my own for my own funky data
<pepijndevos_>
Okay, can confirm that push does not make a label...
<pepijndevos_>
And also nice but unexpected is that strings are inserted as pointers to the data at the end
<pepijndevos_>
What I need to think about now is how to deal with constids... seems nexus has a lits of fixed ones, but also adds a lot of extra ones from the db