NO

Recent Posts

Pages: [1] 2 3 ... 10
1
Beginner questions / Re: How to remove this line in Pelles C?
« Last post by Grincheux on Today at 04:34:14 pm »
You can't, this is the end of the input file.
2
Beginner questions / How to remove this line in Pelles C?
« Last post by ranadas on Today at 03:35:27 pm »
please help me remove this line
3
Many thanks to Pelle for his very nice work.
4
That is our job, the users of this forum must speak about Pelle's Compilers. We are lucky to use such a free IDE and a good compiler and assembler, also free, we must speak of them all around us. That's what I do. But you are right it is not very known. Make pub onto your web site.






 ;) PELLE'S COMPILERS
ARE GENIAL
5
Expert questions / Re: How to get the size of function body?
« Last post by Grincheux on Yesterday at 09:05:38 pm »
0xC3 is the code for "RET". In C there is a no return case. That case, the "RET" ins the best way to measure the function size, I thought that it was possible to use the NOP, but there are too many other bytes used for alignment.
6
General discussion / Re: Short tutorial needed
« Last post by Grincheux on Yesterday at 08:58:35 pm »
There are people that like the Pelle's C Compiler and Assembler but prefer using an other IDE (CodeBlock, NotePad++...). Learning how function Pelles IDE, is not essential. For me, I don't like this IDE, but I use it. Perhaps when my IDE will be finished I will only use Pelles IDE for Debugging.
7
Expert questions / Re: How to get the size of function body?
« Last post by Vortex on Yesterday at 07:56:28 pm »
Here is an attempt for the 64-bit version :

Code: [Select]
#include <stdio.h>

int FindFuncTerm();

int testfunc(int x,int y,int *EndOfFunc)
{
    int result;

    result=x;
    result+=y;

*EndOfFunc=FindFuncTerm();

return result;
}

int __cdecl main(void)
{
    int EndFunc;

    testfunc(10,20,&EndFunc);

    printf("Size of the function testfunc = %d bytes\n",EndFunc-(int)testfunc);

    return 0;

}

FindFuncTerm.asm :

Code: [Select]
.code

FindFuncTerm PROC

    mov     rax,QWORD PTR [rsp]
    dec     rax
@@:
    inc     rax
    cmp     BYTE PTR [rax],195 ; =0xC3
    jne     @b
    inc     rax
    ret

FindFuncTerm ENDP
8
Most manufacturers of paid integrated development environments have a staff of professional marketers. They are engaged in the above-mentioned promotion of their product. I think that the author does not have enough free time to hire them and advertise Better if teachers of universities and other educational institutions will use this program in their educational process (as in the example with UNIX OS).
9
General discussion / Short tutorial needed
« Last post by ecoboy on Yesterday at 03:42:33 pm »
Hello.
I know that there is strong competition in the compiler market. Each compiler manufacturer offers certain fees to book authors who use their programming environment or language as the subject of the book. I suggest writing a short tutorial on the C programming language for beginners, which is illustrated with pictures of The pellesc interface and offers many interesting examples of programs. The most important thing is to show the variety of tasks that can be effectively solved using Pelles C. I think that this way you can expand the range of users of the PellesC programming environment.
Briefly about me. I am a school computer science teacher, teach programming, and use your integrated programming environment with success. Children like Pelles C because it is quite simple and intuitive. I want to thank the developers for their work.
10
General discussions / Re: Compile Optimizations
« Last post by John Z on Yesterday at 01:22:01 am »
Yes - indeed, I'm very sorry to have wasted your time!

The first case hicon is only set within the WM_INITDIALOG, so it needs to be static in order for it to be checkable in the message loop and to be acted upon when exiting using WM_CLOSE.

The second case was my poor code practice of putting in a future piece of code, part of which, in fact, is not currently executed because the control variable is currently fixed, until the feature is implemented, making half of the code unreachable.

So it IS me doing something wrong !  I appreciate the lesson. :-[

Regards,
John
Pages: [1] 2 3 ... 10