News:

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

Main Menu

Recent posts

#21
Announcements / Re: Release Candidate #1 for v...
Last post by John Z - March 18, 2026, 04:04:09 PM
Nice work Timo - results on two Windows 7 systems -

DELL windows 7 Pro
GenuineIntel
Intel(R) Core(TM) Duo CPU  E8400 @ 3.00Ghz

MOVBE not supported


Sony Laptop windows 7 Home
GenuineIntel
Intel(R) Core(TM) Duo CPU  T6600 @ 2.20Ghz

MOVBE not supported


👍

John Z
#22
Beginner questions / Re: same code pelles c and gcc...
Last post by John Z - March 18, 2026, 03:44:17 PM
If (and a big if) I understand it, it appears the issue is the 'direction' of the counting

short int example

gcc and ChatGPT
a1 one:14  a1 zero:1
00000000 00000100 count left to right == 14 for 1st 1
00000000 00000100 count right to left ==  1 for 1st 0

Pelle version
a1 one:3  a1 zero:16
00000000 00000100 count right to left ==  3 for ist 1
00000000 00000100 count left to right == 16 for 1st 0

John Z
#23
Beginner questions / Re: same code pelles c and gcc...
Last post by rweidner - March 18, 2026, 02:11:00 PM
I didn't know the answer to this question. I asked ChatGPT.

QuoteChatGPT:

Assuming the usual widths on a typical modern desktop/compiler:

unsigned short = 16 bits

unsigned int = 32 bits

stdc_first_leading_one(x) returns the 1-based position of the first 1 when scanning from the most-significant bit (MSB).
stdc_first_leading_zero(x) returns the 1-based position of the first 0 when scanning from the MSB.

For 4, the bit pattern is ...00000100 (only bit 2 set, counting from LSB starting at 0):

First leading one is at position width - 2

First leading zero is at position 1 (because the MSB is 0 for the value 4)

So the output will be:

a1 one:14  a1 zero:1
a2 one:30  a2 zero:1

Explanation:

a1 (16-bit): 16 - 2 = 14

a2 (32-bit): 32 - 2 = 30

If you run this on a platform where unsigned int is not 32-bit (or unsigned short not 16-bit), the one: numbers will change accordingly, but the zero: values will still be 1 for 4 (since the MSB is still 0).
#24
Bug reports / Re: Creating resource with man...
Last post by John Z - March 18, 2026, 01:04:51 PM
Hi PaoloC13,

Might need a few more details.  Can you zip the project and post it?

I have created a project with a manifest resource without any problem using v13.

John Z
#25
Announcements / Re: Release Candidate #1 for v...
Last post by TimoVJL - March 17, 2026, 11:12:41 PM
https://uops.info/html-instr/MOVBE_R32_M32.html
Long history.

Intel Bonnel 2008 - 2013
Silvermont 2013 -
Airmont 2015 -
AMD Zen+ 2018 -


EDIT: Check_MOVBE2 show Vendor and Brand too.
#26
Announcements / Re: Release Candidate #1 for v...
Last post by Vortex - March 17, 2026, 09:37:26 PM
I think processors dating back to 2012\2013 are supporting the movbe instruction.
#27
Announcements / Re: Release Candidate #1 for v...
Last post by John Z - March 17, 2026, 08:59:06 PM
Tested on Window 7 Pro, DELL 64 bit (still get security updates)

Install seemed ok, however poide would not start even enough to show a window.
Didn't see it running in the background either.
poview worked.

DEL optiplex 780 Intel Core Duo E8400 release date 2008

John Z

Update: Tested on Win 11 Home 24H2 HP, was successful, installed and built vcardz_i program fine.
#28
Announcements / Re: Release Candidate #1 for v...
Last post by TimoVJL - March 17, 2026, 12:37:16 PM
Hopefully users test new version and don't wait release version.
I try to test Windows 7 with new version, but every PC's CPUs are problem.
Windows 10 and 11 test PCs should not having any problems.
Pelles C support testing other versions with -x -xml poide commandline options.

#29
General discussion / Re: Compiling using pomake
Last post by John Z - March 17, 2026, 09:50:31 AM
Quote from: rweidner on March 16, 2026, 07:52:25 PMYes, main.c is in a different directory. I have a reason for it. It is just not a great reason. LOL.


Got it - a 'works for me situation'  :) Hierarchical and more structured.

Thanks,
John Z
#30
Bug reports / Creating resource with manifes...
Last post by PaoloC13 - March 17, 2026, 12:07:33 AM
Start a new project >
 Win64 Program (EXE) | Name: Test >
  Open >
   Filename: main.c >
    Add file to project >
     Filename: main.c >
      Open >
       Build >

[Ouput]
Project build started
Project build ended successfully

File >
 New >
  Resources (Untitled) >
   New >
    Manifest >
     Save >
      Filename: resources >
       Save >

"Do you want to add the file 'resource.rc' to the current project?" >
 Yes

[Ouput]
Document saved: C:\Documents\Test\resources.rc

Build >
 ...Freezed with spinning wheel

Version: 13.00.9
Windows 11