Pelles C forum

Pelles C => Announcements => Topic started by: Pelle on June 29, 2020, 02:23:44 pm

Title: Version 10.00 (RC2) is now available
Post by: Pelle on June 29, 2020, 02:23:44 pm
Pelles C version 10.00 (Release Candidate #2) is now available for download:
http://www.smorgasbordet.com/pellesc/download.htm

Major changes:
http://www.smorgasbordet.com/pellesc/changes_900_1000.htm

Changes for RC2:

/Pelle
Title: Re: Version 10.00 (RC2) is now available
Post by: TimoVJL on June 29, 2020, 07:54:26 pm
Thanks again :)

Now Add-In PrjObjPODmp64 should work too.
EDIT:
It shows podump.exe result from an object file in Output window.
Title: Re: Version 10.00 (RC2) is now available
Post by: John Z on June 30, 2020, 01:08:25 am
Pelles C version 10.00 (Release Candidate #2) is now available for download:
http://www.smorgasbordet.com/pellesc/download.htm

Thanks very much for all of your hard work.

John
Title: Re: Version 10.00 (RC2) is now available
Post by: Marco on June 30, 2020, 11:18:33 am
Pelles C version 10.00 (Release Candidate #2) is now available for download:

Thank you very much Pelle!
Title: Re: Version 10.00 (RC2) is now available
Post by: Pelle on June 30, 2020, 02:51:38 pm
Thank you all!
Title: Re: Version 10.00 (RC2) is now available
Post by: frankie on June 30, 2020, 03:12:38 pm
          _
          |)`
          | |
          | |____
         /    (]__)
        /    (]___)
       /    (]___)
          ___(]_)
         /
Title: Re: Version 10.00 (RC2) is now available
Post by: Pelle on June 30, 2020, 06:24:32 pm

     _
   _| |
 _| | |
| | | |
| | | | __
| | | |/  \
|       /\ \
|      /  \/
|      \  /\
|       \/ /
 \        /
  |     /
  |    |
Title: Re: Version 10.00 (RC2) is now available
Post by: briman on June 30, 2020, 06:46:19 pm
ˊ ` ` ` ` ` ` ` ` ` ` ` ` ` ` `'F'¯'''''L ` ` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `'[``…'¾`` ``` ``` ``` ```
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `'[```…ʹ[` ` ` ` ``` ``` ```
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `#````ˆ[```` ``` ``` ``` ``
` ` ` ` ` ` ` ` ` ` ` ` ` ` `'#``…``'[`… ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` #…`````'F`` ` ` ` `` ``` ```
` ` ` ` ` ` ` ` ` ` ` ` ` ƒ¯```````'[__` ` ` ` ` ` ` ``` ``
` ` ` ` ` ` ` ` ` ` ` ` ƒ¯````````ʹ¯¯¯¯''''''''''''¯¯¯¯¯¯™[ `
gµµµµµµµµµµµµµµ_µ™`````````````````````````'# `
'₫₫₫₫₫₫₫₫₫₫₫₫₫F¯…`````````````````````` ` ²q[¯ ` `
ʹ₫₫₫₫₫₫₫₫₫₫₫₫¾````````````````````````````ʹ} … `
›₫₫₫₫₫₫₫₫₫₫₫₫#`````````````````````````__µr… ` `
³₫₫₫₫₫₫₫₫₫₫₫₫₫…`````````````````````````¯[ … ` `
`₫₫₫₫₫₫₫₫₫₫₫₫$``````````````````````````_F … ` `
`]₫₫₫₫₫₫₫₫₫₫₫#````````````````````````ʹ''''[… … ` `
`'₫₫₫₫₫₫₫F''''']₫#___`````````````````````` '# … ` `
…₫₫₫₫₫₫₫bµ₫₫₫₫$¯''''¹uuuuuɷuɷuɷuɷuɷuɷµ#¯ ` ` ` ` `
…'''''''™''''™'''™''''™™ … … ` ` ` ` ` ` ` ` ` ` ` ` … … ` ` `
` … ` ` ` ` ` ` ` ` … ` … ` ` ` ` ` ` ` ` ` ` ` … ` ` ` ` `.
Title: Re: Version 10.00 (RC2) is now available
Post by: MrBcx on June 30, 2020, 09:53:13 pm
Since everyone is being silly ...   ;D
Title: Re: Version 10.00 (RC2) is now available (IDE bug?)
Post by: John Z on July 03, 2020, 12:25:37 am
Hi,

This is not strictly Version 10 RC2.  Both version 9 and version 10 become basically inoperable - when this error is encountered.

When this error "Context_links.h(257): warning #1039: [ISO] No newline at end of file." occurs the IDE hangs.  The project status stays in building and 'Project - Stop build' does nothing to recover the normal state.  The only way to get out this state is to use the Process Viewer to kill the poide.exe.  File - Close Project is disabled, File - Exit does not work, and using the window X does not help.  This happens in version 9 as well as version 10 RC2.   I think the IDE is in two states simultaneously because one can open edit and save code but nothing else.  It is easy to test ....

Regards,
John
Title: Re: Version 10.00 (RC2) is now available
Post by: TimoVJL on July 04, 2020, 09:16:54 am
A small project to test that.

Stop build doesn't work.
Title: Re: Version 10.00 (RC2) is now available
Post by: Pelle on July 04, 2020, 02:01:38 pm
A small project to test that.
Thanks! I will have a look...
Title: Re: Version 10.00 (RC2) is now available
Post by: John Z on July 04, 2020, 02:12:56 pm
Thanks TimoVJL - I should have done that.  I will in the future.

Regards,
John Z
Title: Re: Version 10.00 (RC2) POSSIBLE Optimize speed bug
Post by: John Z on July 11, 2020, 05:56:31 pm
Hi,

Back on RC1 I mentioned a possible bug using optimizations.  V10 was/is giving me different results compared to V9.  I have a small portion of code, from a huge program, that either demonstrates the possible bug, or demonstrates I need to be a better programmer (undoubtedly true regardless ;) ).

This program will run 'correctly' using no optimizations, optimize for size, and optimize for size more in V10 RC2. However it will fail to run correctly when using optimize for speed or optimize for speed more in V10 RC2.  Using V9.009 it always works with all original code as written and any optimization desired.  I have stripped out many, many, lines of code to get a small example for V10.

It 'appears' that a pointer changes.  A statement
memset(p_ext,0,49); // clear extension storage is clearing a different pointer space that belonging to p_LineIn. 

If I change this one line to clear by writing nothing
swprintf(p_ext,49,L"%s",""); // clear extension storage then the optimizations ALL work and the program runs correctly.

There are other lines of code that can be removed and the result changes as well, but they seem unrelated to clearing p_ext.  Also using wmemset has the same issue as memset.  If there is a programmer pointer error I've gone blind to it.....

At the top of mainc. there are some instructions on what lines to comment out to try it. When it works correctly two message boxes will show with identical strings and the program will quit.  When it fails the second message box is blank, a third box will indicate that it failed.

I will really appreciate any help, or tips, and your time to look this over, hopefully I won't be too embarrassed!

John
Title: Re: Version 10.00 (RC2) is now available
Post by: Pelle on July 12, 2020, 08:12:25 pm
It's a compiler bug, due to imprecise alias/liveness info. The compiler thinks ext[] and LineIn[] can share stack space, which they can't.
The quick fix is to add
Code: [Select]
#pragma pack_stack(off)but a proper fix looks much harder. I'm out of ideas at the moment...
Title: Re: Version 10.00 (RC2) is now available
Post by: John Z on July 13, 2020, 05:00:22 pm
Thanks Pelle,

I appreciate you taking a look at this and figuring it out. 
Saves my sanity looking for where I went wrong :)

I'll implement your suggestion.

Thanks again,
John
Title: Re: Version 10.00 (RC2) is now available
Post by: John Z on July 15, 2020, 01:30:51 pm
Good news - this looks to be resolved in RC3.  The test program works under all conditions and the original full program operates correctly.  Perhaps this : •Fixed compiler problem with aggregate stack interference graph and pointer aliasing. resolved it.

John Z
Title: Re: Version 10.00 (RC2) is now available
Post by: Pelle on July 15, 2020, 02:00:36 pm
Good news - this looks to be resolved in RC3.  The test program works under all conditions and the original full program operates correctly.

Great!

Perhaps this : •Fixed compiler problem with aggregate stack interference graph and pointer aliasing. resolved it.

Yes (I could have stated it less technical, but I wanted to be precise).