Skip to content

Commit 551a7d0

Browse files
committed
Segmentation fault index entry
1 parent 7bb0c9d commit 551a7d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/Getting_your_toes_wet.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
This flag enables floating-point optimizations which might reduce accuracy or result in incorrect behavior, especially in situations such as divide-by-zero.
124124
We therefore recommend not using this flag until you have verified that your program produces the correct results.
125125
After that you can use it to make your program faster, but do check that it still behaves correctly.
126-
\item Finally, if your code starts throwing segmentation faults (segfaults), consider using the \texttt{-fbounds-check}\index{compiler flags!-fbounds-check} flag.
126+
\item Finally, if your code starts throwing segmentation faults (segfaults), consider using the \texttt{-fbounds-check}\index{compiler flags!-fbounds-check}\index{segmentation fault} flag.
127127
Segfaults usually occur because you've run an index off the end of an array, so compiling with this flag turns on runtime bounds checking (at the expense of significantly reduced performance).
128128
\end{itemize}
129129
If the program compiled correctly, you can run it by typing \texttt{./a.out} or \texttt{./myprog}.

0 commit comments

Comments
 (0)