News:

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

Main Menu

Recent posts

#11
Announcements / Re: New Year, new URL
Last post by Cbeginner - January 12, 2026, 03:35:14 PM
 ;D

Glad Pelles C is alive and well
#12
Assembly discussions / Re: Windows domain membership
Last post by Marco - January 12, 2026, 11:46:39 AM
Hi Vortex,

Although I wrote some programs in pure assembly language in 1992, it is not my area of expertise. Nevertheless, I would like to thank you for consistently providing new examples.

Marco
#13
Announcements / Re: New Year, new URL
Last post by Pelle - January 11, 2026, 11:02:49 PM
Quote from: alderman2 on January 11, 2026, 09:51:45 PMI don't think they're the ones you should lean on, but rather those who still program the basic language C.
Sure. The question is what this means in practice.

C on Windows in 2026+ will mainly be hobbyists (certainly for this project), where the latest and greatest isn't that important.
At my first real programming job in ~1985 I could have gone the Unix route (probably), but it wasn't much of an option back then... and 40+ years later it's still not an option...
After Windows and Unix there are roughly zero desktop operating-systems to choose from...

Microsoft have managed to mess up Windows quite a bit in recent years, focusing on irrelevant things (for enough people to matter), so it's not an obvious choice - except there are few other options. Now that I'm almost finished with ARM64 (still a potential flop), it's not clear what I should do. Write more examples? Not that exiting to be honest...

I'm not an innovator, and right now I can't find much inspiration anywhere...
#14
Announcements / Re: New Year, new URL
Last post by alderman2 - January 11, 2026, 09:51:45 PM
Gott nytt år från mig också!

Happy New Year from me too!

No programming languages die. There are even people who still sit and program in Commodore Vic20 and even older stuff with older programming languages. The vast majority don't do that, they change languages like they change shirts. I don't think they're the ones you should lean on, but rather those who still program the basic language C.
#15
Announcements / Re: New Year, new URL
Last post by Pelle - January 11, 2026, 08:20:45 PM
OK, thank you all....

Some more information:

* I have given up hope for future C standards: there seem to be a lack of C experts on the committee these days. Once enough of them are gone, it seems unlikely for things to improve (ever). Some rubbish already entered C23, and C2y looks worse. The C programming language will not go away any time soon, there is just too much C code still in use, but largely the useful C code has already been written (in some older standard).

* Much of the source code on "smorgasbordet.com/pellesc" was old and outdated, so I don't really see a point in publishing it ever again, but I still have the code... so if you insist?!

* C on Windows is static since long ago, C++ on Windows seems to change every other year or so. Not much to work on here really...

* To avoid total brain-rot at 65+ I need something to work on, so the next version of Pelles C (14.00) will mainly contain new (experimental) support for ARM64 machines. Some time after the Olympics, I would expect...

* Not sure what to work on after version 14.00 though...

#16
Assembly discussions / Windows domain membership
Last post by Vortex - January 11, 2026, 06:34:18 PM
This quick code checks if your computer is a member of a domain :

include IsDomainMemb.inc

.data

m1  db 'The computer is not joined to a domain.',0
m2  db 'The computer is joined to a domain.',0
tbl dd OFFSET m1,OFFSET m2

.code

start:

    invoke  IsOS,OS_DOMAINMEMBER

    xor     ecx,ecx
    mov     eax,29
    test    eax,eax
    setne   cl
    push    ecx
    shl     ecx,2
    lea     edx,[tbl+ecx]

    invoke  StdOut,DWORD PTR [edx]

    pop     eax
    invoke  ExitProcess,eax


OPTION PROLOGUE:NONE
OPTION EPILOGUE:NONE

StdOut PROC _string:DWORD

    sub     esp,2*4
   
    invoke  GetStdHandle,STD_OUTPUT_HANDLE
    mov     DWORD PTR [esp+4],eax
   
    invoke  lstrlen,DWORD PTR [esp+12]
    mov     edx,esp
   
    invoke  WriteFile,DWORD PTR [esp+20],\
            DWORD PTR [esp+24],\
            eax,edx,0
           
    add     esp,2*4
    retn    4

StdOut ENDP

OPTION PROLOGUE:PrologueDef
OPTION EPILOGUE:EpilogueDef

END start
#17
Announcements / Re: New Year, new URL
Last post by MrBcx - January 11, 2026, 03:56:46 PM
You sure have a knack for surprising us!

Happy New Year and Thanks for 13.1

                       ;D
#18
Announcements / Re: New Year, new URL
Last post by bitcoin - January 11, 2026, 03:37:00 PM
Hello , Pelle
Thanks
We need to update all links in wiki and such sites.
#19
Announcements / Re: New Year, new URL
Last post by Marco - January 11, 2026, 12:59:57 PM
Hello Pelle,

Great. Thank you!

Marco
#20
Announcements / Re: New Year, new URL
Last post by Vortex - January 11, 2026, 12:46:19 PM
Hi Pelle,

Many thanks and happy new year.