Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: VbCl8ye2vyFPaP0M on December 04, 2023, 01:26:44 am

Title: How to view YMM and ZMM registers in watches window?
Post by: VbCl8ye2vyFPaP0M on December 04, 2023, 01:26:44 am
Is there a way to view the YMM and ZMM registers in the watches window? Viewing $xmm0 shows the contents of XMM0 as expected, but $ymm0 and $zmm0 just shows the the text "void" and the type void.

Using
Version          : 20.03-r11983 (on Windows 7 x64)

P.S.: $rflags or $flags also show 2 x void, but $eflags does work.
Title: Re: How to view YMM and ZMM registers in watches window?
Post by: Miguel Gimenez on December 04, 2023, 12:34:22 pm
Probably they have no associated types (256 and 512 bits are too big).
Title: Re: How to view YMM and ZMM registers in watches window?
Post by: VbCl8ye2vyFPaP0M on December 04, 2023, 06:33:33 pm
Sorry about that, it seems to be a problem with GDB rather than Code::Blocks.

I'm using "GNU gdb (GDB) 13.2". It disassembles the code correctly with AVX2 instructions and ymm registers, but no amount of googling and trying commands in the console will make it print the value of YMM registers :-(
Title: Re: How to view YMM and ZMM registers in watches window?
Post by: omlk on December 06, 2023, 05:06:48 pm
Just interesting, do you work with such registers (https://www.codeproject.com/Articles/5372617/Performance-Optimization-on-Intel-Processors-with) all the time, or why do you need these registers?


Title: Re: How to view YMM and ZMM registers in watches window?
Post by: Wkerry on December 07, 2023, 11:30:47 am
omlk, how is the post relevant?
Title: Re: How to view YMM and ZMM registers in watches window?
Post by: omlk on December 09, 2023, 12:53:20 am
omlk, how is the post relevant?
I just came across a post and saw similar symbols, so I'm asking a codeblock user if he already wants to work with avx512/zmm registers processor in codeblocks to optimize or write microcode for processors or someone writing high load server applications or for research in institutes. Are code blocks suitable for this?
Title: Re: How to view YMM and ZMM registers in watches window?
Post by: Wkerry on December 09, 2023, 03:03:16 am
omlk, in your web site you are a hard core Windows dev expert, so for my knowledge how have you moved to embedded SQL as I would also like to use it?  (Embedded SQL is ! MCU/SOC)