Passing the -N flag will disable optimizations, which includes jump tables.
On Wednesday, November 27, 2024 at 1:42:14 PM UTC-8 Ian Lance Taylor wrote: > On Wed, Nov 27, 2024 at 5:48 AM 'Karolina GORNA' via golang-nuts > <golan...@googlegroups.com> wrote: > > > > I wondered if there is a similar command to gcc -fno-jump-tables -o > output_file source_file.c to compile Go code without jump tables but only > with if/else statements (binary search) please ? > > Sorry, there is no such option for the usual Go compiler. > > Why do you want it? > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/2f172ac3-26cc-4a09-bb7c-831d5fa4efd2n%40googlegroups.com.