Download Pelles C here: http://www.pellesc.se
Quote from: Pelle on Yesterday at 03:05:19 PMMaybe. I need to check things more - this part of the IDE hasn't changed for 10+ years, so...
Quote from: ander_cc on April 20, 2026, 10:02:34 AMI check the output of your code paste below.Maybe. I need to check things more - this part of the IDE hasn't changed for 10+ years, so...
I think you filter the fonts with "GB2312_CHARSET" ? Maybe add "ANSI_CHARSET" could fix it.
#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;
}#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;
}
_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
for (i=1;i<11;i=i-(-1))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 check the output of your code paste below.
I will have to think about this (when I can find the time)...
Page created in 0.046 seconds with 15 queries.