NO

Author Topic: Version 10.00 (RC2) is now available  (Read 12698 times)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Version 10.00 (RC2) is now available
« 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:
  • Added atomic floating-point add/sub/mul/div/exchange for X64 targets (missing atomic floating-point post-increment/decrement may be added in a future version).
  • Fixed IDE problem with environment variables when switching a project between 32 bits and 64 bits.
  • Fixed compiler problem with missing /arch option check for idiomatic popcount loop, and also added a minor enhancement.
  • Fixed compiler problem with call unnesting for intrinsic function argument(s).
  • Fixed compiler problem processing atomic post-increment/decrement on small integer type (< int).
  • Fixed minor IDE problem with properties for a generic text file.
  • Fixed IDE problem with missing ES_MULTILINE for some fields in project Options.
  • Fixed problem with path construction when enough parent references (..) took it above the 'root' of the 'current' directory.

/Pelle
/Pelle

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Version 10.00 (RC2) is now available
« Reply #1 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.
« Last Edit: July 01, 2020, 08:44:42 PM by TimoVJL »
May the source be with you

Offline John Z

  • Member
  • *
  • Posts: 860
Re: Version 10.00 (RC2) is now available
« Reply #2 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

Offline Marco

  • Member
  • *
  • Posts: 45
Re: Version 10.00 (RC2) is now available
« Reply #3 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!

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Version 10.00 (RC2) is now available
« Reply #4 on: June 30, 2020, 02:51:38 PM »
Thank you all!
/Pelle

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Version 10.00 (RC2) is now available
« Reply #5 on: June 30, 2020, 03:12:38 PM »
          _
          |)`
          | |
          | |____
         /    (]__)
        /    (]___)
       /    (]___)
          ___(]_)
         /
« Last Edit: June 30, 2020, 03:14:27 PM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Version 10.00 (RC2) is now available
« Reply #6 on: June 30, 2020, 06:24:32 PM »

     _
   _| |
 _| | |
| | | |
| | | | __
| | | |/  \
|       /\ \
|      /  \/
|      \  /\
|       \/ /
 \        /
  |     /
  |    |
/Pelle

briman

  • Guest
Re: Version 10.00 (RC2) is now available
« Reply #7 on: June 30, 2020, 06:46:19 PM »
ˊ ` ` ` ` ` ` ` ` ` ` ` ` ` ` `'F'¯'''''L ` ` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `'[``…'¾`` ``` ``` ``` ```
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `'[```…ʹ[` ` ` ` ``` ``` ```
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `#````ˆ[```` ``` ``` ``` ``
` ` ` ` ` ` ` ` ` ` ` ` ` ` `'#``…``'[`… ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` #…`````'F`` ` ` ` `` ``` ```
` ` ` ` ` ` ` ` ` ` ` ` ` ƒ¯```````'[__` ` ` ` ` ` ` ``` ``
` ` ` ` ` ` ` ` ` ` ` ` ƒ¯````````ʹ¯¯¯¯''''''''''''¯¯¯¯¯¯™[ `
gµµµµµµµµµµµµµµ_µ™`````````````````````````'# `
'₫₫₫₫₫₫₫₫₫₫₫₫₫F¯…`````````````````````` ` ²q[¯ ` `
ʹ₫₫₫₫₫₫₫₫₫₫₫₫¾````````````````````````````ʹ} … `
›₫₫₫₫₫₫₫₫₫₫₫₫#`````````````````````````__µr… ` `
³₫₫₫₫₫₫₫₫₫₫₫₫₫…`````````````````````````¯[ … ` `
`₫₫₫₫₫₫₫₫₫₫₫₫$``````````````````````````_F … ` `
`]₫₫₫₫₫₫₫₫₫₫₫#````````````````````````ʹ''''[… … ` `
`'₫₫₫₫₫₫₫F''''']₫#___`````````````````````` '# … ` `
…₫₫₫₫₫₫₫bµ₫₫₫₫$¯''''¹uuuuuɷuɷuɷuɷuɷuɷµ#¯ ` ` ` ` `
…'''''''™''''™'''™''''™™ … … ` ` ` ` ` ` ` ` ` ` ` ` … … ` ` `
` … ` ` ` ` ` ` ` ` … ` … ` ` ` ` ` ` ` ` ` ` ` … ` ` ` ` `.

Offline MrBcx

  • Global Moderator
  • Member
  • *****
  • Posts: 189
    • Bcx Basic to C/C++ Translator
Re: Version 10.00 (RC2) is now available
« Reply #8 on: June 30, 2020, 09:53:13 PM »
Since everyone is being silly ...   ;D
Bcx Basic to C/C++ Translator
https://www.BcxBasicCoders.com

Offline John Z

  • Member
  • *
  • Posts: 860
Re: Version 10.00 (RC2) is now available (IDE bug?)
« Reply #9 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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Version 10.00 (RC2) is now available
« Reply #10 on: July 04, 2020, 09:16:54 AM »
A small project to test that.

Stop build doesn't work.
« Last Edit: July 04, 2020, 09:24:31 AM by TimoVJL »
May the source be with you

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Version 10.00 (RC2) is now available
« Reply #11 on: July 04, 2020, 02:01:38 PM »
A small project to test that.
Thanks! I will have a look...
/Pelle

Offline John Z

  • Member
  • *
  • Posts: 860
Re: Version 10.00 (RC2) is now available
« Reply #12 on: July 04, 2020, 02:12:56 PM »
Thanks TimoVJL - I should have done that.  I will in the future.

Regards,
John Z

Offline John Z

  • Member
  • *
  • Posts: 860
Re: Version 10.00 (RC2) POSSIBLE Optimize speed bug
« Reply #13 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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Version 10.00 (RC2) is now available
« Reply #14 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...
/Pelle