News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Recent posts

#11
Expert questions / Re: Link error with minhook
Last post by ander_cc - Yesterday at 12:37:06 PM
You can compile it to static lib with pelles c. but do not add MinHook.def and MinHook.rc to project.
I try it and it works.

If you add MinHook.rc file can get follow error. I donot know why.
*** Error:   "D:\minihook\dll_resources\MinHook.rc" -Fo"D:\minihook\output\MinHook.res"


#12
Bug reports / Re: Maybe a optimization bug.
Last post by Vortex - April 20, 2026, 10:53:43 PM
The code below compiled as 32-bit application works fine :

#include <stdio.h>

int main(void)
{
    int i;
    int s=0;
    for (i=1;i<11;)
    {
s=s+i;
__asm inc i;
    }
    printf("i=%d , sum = %d\n",i,s);
    return 0;
}

i=11 , sum = 55
#13
Bug reports / Re: Maybe a optimization bug.
Last post by TimoVJL - April 20, 2026, 10:09:30 PM
Hi John Z, have a fun with Clang with limits with optimizations.
Optimizations for static code isn't so important and you know reasons for that.
#14
Bug reports / Re: Maybe a optimization bug.
Last post by John Z - April 20, 2026, 01:59:47 PM
Many variations can complicate the use of i enough that the optimizer does not affect i.

Both of these variations within the loop also 'work' to inhibit the optimization -
s = s + (i*i)/i;
and
s = s + ((i << 1) >> 1);

We can probably find more too, but I'm fairly sure this is not helping -

#include <stdio.h>

int main(void)
{
    int i = 1;
    int s = 0;

    do {
        //s = s + (i*i)/i;         // works
          s = s + ((i << 1) >> 1); // works
        i++;   
    } while (i <= 10);
    printf("i = %d\n", i);
    printf("Sum = %d\n", s);
    return 0;
}

Another 'working' version
#include <stdio.h>

int main(void)
{
    int i = 0;
    int s = 0;

    do {
++i;
s = s + i;
       } while (i <= 9);
    printf("i = %d\n", i);
    printf("Sum = %d\n", s);
    return 0;
}

John Z
#15
Bug reports / Re: Maybe a optimization bug.
Last post by Vortex - April 20, 2026, 12:55:52 PM
I was too fast, same issue :

_text   SEGMENT PARA 'CODE'

main    PROC
        sub     rsp, 40
        lea     rcx, [@154]
        call    printf    
        lea     rcx, [@156]
        mov     edx, 55   
        call    printf    
        xor     eax, eax  
        add     rsp, 40   
        ret               
main    ENDP

_text   ENDS

.rdata  SEGMENT PARA 'CONST'                          

@156    label byte
        db 53H, 75H, 6DH, 20H, 3DH, 20H, 25H, 64H       ; 0000 _ Sum = %d
        db 0AH, 00H                                  

@154    label byte
        db 69H, 20H, 3DH, 20H, 25H, 64H, 0AH, 00H       ; 000A _ i = %d..

.rdata  ENDS

Again, this line is fixing the issue :

    for (i=1;i<11;i=i-(-1))
#16
Bug reports / Re: Some fonts are missing fro...
Last post by ander_cc - April 20, 2026, 10:02:34 AM
Quote from: Pelle on April 18, 2026, 05:58:35 PMI am deliberately filtering the fonts list. At least last time I checked, several years ago, not doing this filtering gave me many fonts I couldn't use.
I will have to think about this (when I can find the time)...
I check the output of your code paste below.
I think you filter the fonts with "GB2312_CHARSET" ? Maybe add "ANSI_CHARSET" could fix it.
#17
Bug reports / Re: Some fonts are missing fro...
Last post by ander_cc - April 20, 2026, 09:54:54 AM
Quote from: Pelle on April 19, 2026, 09:36:31 PMThe version is in many places, this place is less important. I will fix this some day.

To get some progress here, could you please compile and run the following program. If you see fonts in the output that you want, but don't see in the IDE, please post the following info:

1) The 6 lines following "#1: LOCALE FONT SIGNATURE"
2) The 3-9 lines from "#2: LIST OF FONTS" for the missing font(s).
Thank you!
#1: LOCALE FONT SIGNATURE:
  ls.lsUsb
  • : 0000000000
  ls.lsUsb[1]: 0x28010000
  ls.lsUsb[2]: 0x00000002
  ls.lsUsb[3]: 0x80000000
  ls.lsCsbSupported
  • : 0x00040000
  ls.lsCsbSupported[1]: 0000000000

#2: LIST OF FONTS:

Cascadia font family all miss and Consolas font.

  lfFaceName: "Consolas"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: ANSI_CHARSET
  ntmFontSig.fsUsb[0]: 0xe00006ff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0x0000fcff (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00000001 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x6000019f (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xdfd70000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Consolas"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: GREEK_CHARSET
  ntmFontSig.fsUsb[0]: 0xe00006ff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0x0000fcff (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00000001 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x6000019f (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xdfd70000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Consolas"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: TURKISH_CHARSET
  ntmFontSig.fsUsb[0]: 0xe00006ff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0x0000fcff (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00000001 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x6000019f (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xdfd70000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Consolas"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: BALTIC_CHARSET
  ntmFontSig.fsUsb[0]: 0xe00006ff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0x0000fcff (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00000001 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x6000019f (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xdfd70000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Consolas"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: EASTEUROPE_CHARSET
  ntmFontSig.fsUsb[0]: 0xe00006ff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0x0000fcff (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00000001 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x6000019f (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xdfd70000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Consolas"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: RUSSIAN_CHARSET
  ntmFontSig.fsUsb[0]: 0xe00006ff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0x0000fcff (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00000001 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x6000019f (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xdfd70000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Consolas"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: VIETNAMESE_CHARSET
  ntmFontSig.fsUsb[0]: 0xe00006ff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0x0000fcff (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00000001 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x6000019f (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xdfd70000 (mask locale => 0000000000)
   lfFaceName: "Cascadia Code"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: ANSI_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Code"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: HEBREW_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Code"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: ARABIC_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Code"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: GREEK_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Code"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: TURKISH_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Code"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: BALTIC_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Code"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: EASTEUROPE_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Code"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: RUSSIAN_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Code"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: VIETNAMESE_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
   ------------------------------
  lfFaceName: "Cascadia Mono"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: ANSI_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: HEBREW_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: ARABIC_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: GREEK_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: TURKISH_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: BALTIC_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: EASTEUROPE_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: RUSSIAN_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: VIETNAMESE_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono SemiBold"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: ANSI_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono SemiBold"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: HEBREW_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono SemiBold"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: ARABIC_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono SemiBold"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: GREEK_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono SemiBold"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: TURKISH_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono SemiBold"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: BALTIC_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono SemiBold"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: EASTEUROPE_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono SemiBold"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: RUSSIAN_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
  ------------------------------
  lfFaceName: "Cascadia Mono SemiBold"
  dwFontType: TRUETYPE_FONTTYPE
  lfCharSet: VIETNAMESE_CHARSET
  ntmFontSig.fsUsb[0]: 0xa1002aff (mask locale => 0000000000)
  ntmFontSig.fsUsb[1]: 0xc200f9fb (mask locale => 0000000000)
  ntmFontSig.fsUsb[2]: 0x00040020 (mask locale => 0000000000)
  ntmFontSig.fsUsb[3]: 0000000000 (mask locale => 0000000000)
  ntmFontSig.fsCsb[0]: 0x600001ff (mask locale => 0000000000)
  ntmFontSig.fsCsb[1]: 0xffff0000 (mask locale => 0000000000)
#18
Feature requests / Re: Enhanced editor suggestion...
Last post by PhilG57 - April 20, 2026, 03:21:17 AM
Yes, I understand.  The .ppw file contains the names of its projects (.ppj files), and any dependency an individual project might have on another project.  More stuff might appear in the .ppw file but this is all I've seen so far.

I guess I was hoping the a new "workspace" section in the .ppw file might contain any compiler/linker/etc 'global' values available to an individual project.  For example, if you have several projects in a workspace and wish to move all the projects from C11 to C17, an appropriate .ppw entry would reflect that desire.  Then each project specifying 'inherit' in the appropriate compiler section entry, would gracefully change to C17.  A project with a particular requirement for a different compiler, would just specify that value in the appropriate .ppj compiler entry and inheritance would not take place.

Not a trivial request I know, but a way of embracing large, multi project, projects.  As always, thanks.
#19
Bug reports / Re: Maybe a optimization bug.
Last post by John Z - April 19, 2026, 11:13:12 PM
Quote from: Pelle on April 18, 2026, 05:52:29 PMI my experience, enabling the optimizer on poorly written C code is more of a problem than the optimizer itself.

I agree with this also. In general I am seeing less and less issues as I program more...

John Z
#20
Bug reports / Re: Maybe a optimization bug.
Last post by John Z - April 19, 2026, 10:57:46 PM

Are you sure because adding the print of i to check shows maybe not-
If i becomes corrupt but it is not looked at - is it really corrupt  ;D
Schrödinger's cat according to quantum theory, i is simultaneously good and bad until viewed
 ;)

#include <stdio.h>

int main(void)
{
    int i;
    int s=0;
    for (i=1;i<11;i++)
    {
        s=s+i;
    }
    printf("i = %d\n",i);
    printf("Sum = %d\n",s);
    return 0;
}

This also appears to be OK as long as not looking at the value of i -
#include <stdio.h>

int main(void)
{
    int i = 1;
    int s = 0;
   
    do {
        s = s + i;
        i++;
    } while (i <= 10);
    printf("i = %d\n", i);
    printf("Sum = %d\n", s);
    return 0;
}

using volatile int i has 'fixed' it every time...

John Z