English Amiga Board


Go Back   English Amiga Board > News

 
 
Thread Tools
Old 02 November 2022, 10:29   #21
gigabates
Registered User
 
Join Date: Jan 2021
Location: Watford, UK
Posts: 57
Ok I can see what it is. The parser extracts the values by looking at the character offsets in the header row, but this row is thrown out of alignment by the long 'c-1048' values. We'll need to switch to another approach e.g. just splitting on whitespace and counting the values. I'll give it a go.

Code:
   LOC   CFA      r2    r3    r4    r13   r14   ra    
00001d7c r15+4    u     u     u     u     u     c-4   
00001d80 r13+8    u     u     u     c-8   u     c-4   
00001d84 r13+8    c-1048 c-1044 c-1040 c-8   c-1036 c-4
gigabates is offline  
Old 02 November 2022, 10:50   #22
girv
Mostly Harmless
 
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,109
I've no idea what those are Is the elf just bigger than expected or something like that?
girv is offline  
Old 02 November 2022, 10:54   #23
Bartman
Registered User
 
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
Quote:
Originally Posted by gigabates View Post
Ok I can see what it is. The parser extracts the values by looking at the character offsets in the header row, but this row is thrown out of alignment by the long 'c-1048' values. We'll need to switch to another approach e.g. just splitting on whitespace and counting the values. I'll give it a go.

Code:
   LOC   CFA      r2    r3    r4    r13   r14   ra    
00001d7c r15+4    u     u     u     u     u     c-4   
00001d80 r13+8    u     u     u     c-8   u     c-4   
00001d84 r13+8    c-1048 c-1044 c-1040 c-8   c-1036 c-4
Yep, see https://github.com/BartmanAbyss/vsco...ebug/issues/35
never got round to it.
Bartman is offline  
Old 02 November 2022, 10:55   #24
Bartman
Registered User
 
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
Quote:
Originally Posted by girv View Post
I've no idea what those are Is the elf just bigger than expected or something like that?
Some functions have a stack that is larger than 1000 bytes. No problem with your ELF file, but just my parser
Bartman is offline  
Old 02 November 2022, 10:59   #25
Bartman
Registered User
 
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
Quote:
Originally Posted by girv View Post
I've been waiting a year or more for this Since doing my own faffing around getting Bartman's GCC 10 and 11 to build on macOS.

The other thing I'm wondering about - are there any benchmarks comparing bebbo to gcc12 for C99 code? I'd been mostly using bebbo up until now and supporting both in the code is kind of a pain.
Probably varies from case to case, but in our case, there was like 20% increase from gcc6->gcc7, and 10% from gcc7->gcc8. Performance was the main reason we wanted to go to a newer gcc.

Although, I have to admit, my port doesn't have the bebbo specific 68000 optimizations.
Bartman is offline  
Old 02 November 2022, 10:59   #26
gigabates
Registered User
 
Join Date: Jan 2021
Location: Watford, UK
Posts: 57
I've opened a PR with a fix for this.

@girv if you want to test you can try my branch here.
gigabates is offline  
Old 02 November 2022, 12:45   #27
girv
Mostly Harmless
 
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,109
Quote:
Originally Posted by Bartman View Post
Although, I have to admit, my port doesn't have the bebbo specific 68000 optimizations.
That's the bit I'm curious about

gcc12 also seems to make larger amiga executables.
Code:
         -Ofast    -O3        -O2        -Os        
gcc12   0x14368    0x14368    0x0EED8    0x0C780    
bebbo   0x0ED3C    0x0ECBC    0x0DA6C    0x0C1F4
girv is offline  
Old 02 November 2022, 13:03   #28
girv
Mostly Harmless
 
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,109
Quote:
Originally Posted by gigabates View Post
@girv if you want to test you can try my branch here.
I noticed it had been merged to master

It works! Thanks!
https://i.imgur.com/kE3aEYI.png (large image!)
girv is offline  
Old 02 November 2022, 15:55   #29
gigabates
Registered User
 
Join Date: Jan 2021
Location: Watford, UK
Posts: 57
Quote:
Originally Posted by girv View Post
It works! Thanks!
https://i.imgur.com/kE3aEYI.png (large image!)

That's great news! One thing I do notice on the screenshot is some glitching on the flame graph. I've seen this before too but haven't been able to reliably reproduce it. @Bartman have you seen this issue before?
gigabates is offline  
Old 02 November 2022, 16:31   #30
Bartman
Registered User
 
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
Quote:
Originally Posted by gigabates View Post
That's great news! One thing I do notice on the screenshot is some glitching on the flame graph. I've seen this before too but haven't been able to reliably reproduce it. @Bartman have you seen this issue before?
Nopes, never seen before. Is this only on MacOS? The graph is rendered with WebGL, the code came directly from Microsoft. https://github.com/microsoft/vscode-...-profile-flame

I heard MacOS and OpenGL is not a good combination. Could you try if Microsoft's extension has the same problems? If not, it may be my modifications or they have fixed the issue.
Bartman is offline  
Old 02 November 2022, 17:34   #31
gigabates
Registered User
 
Join Date: Jan 2021
Location: Watford, UK
Posts: 57
It looks like this fix is related. The code has diverged a bit, but I'll try to backport the changes and see if it makes a difference.
gigabates is offline  
Old 06 November 2022, 20:04   #32
emiespo
Registered User
 
Join Date: Jul 2017
Location: Oxford
Posts: 103
Hi, tried the latest version 1.6.6 (MacOs), it seems FsUAE won't start now (tried to launch it from the cli and it complains about missing SDL libraries).

I manually installed all the libraries via brew, and it came back to life, but I assume this could be a bug?
emiespo is offline  
Old 07 November 2022, 16:18   #33
Bartman
Registered User
 
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
Quote:
Originally Posted by emiespo View Post
Hi, tried the latest version 1.6.6 (MacOs), it seems FsUAE won't start now (tried to launch it from the cli and it complains about missing SDL libraries).

I manually installed all the libraries via brew, and it came back to life, but I assume this could be a bug?
Thanks for trying. Can you file a bug report here? https://github.com/BartmanAbyss/vsco...a-debug/issues
Bartman is offline  
Old 07 November 2022, 16:19   #34
Bartman
Registered User
 
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
Quote:
Originally Posted by gigabates View Post
It looks like this fix is related. The code has diverged a bit, but I'll try to backport the changes and see if it makes a difference.
thanks!
Bartman is offline  
Old 08 November 2022, 14:11   #35
walkero
Registered User
 
walkero's Avatar
 
Join Date: May 2012
Location: Dublin/Ireland
Posts: 358
Quote:
Originally Posted by Bartman View Post

Thank you so much for those.
walkero is offline  
Old 08 November 2022, 15:39   #36
girv
Mostly Harmless
 
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,109
FWIW, and with other caveats around benchmarking, I did some comparisons of gcc12 vs. bebbo at different optimisation levels on the main cpu-bound "update" phase of my project.

Results: https://imgur.com/a/u0CEYOk

The figures are elapsed CIA ticks on a cycle-exact A500 emulation.

For this C99 code, Bebbo has a solid performance lead of about 3% over gcc12 and produces much smaller executables. YMMV.
girv is offline  
Old 08 November 2022, 15:54   #37
Bartman
Registered User
 
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
wow! that's surprising. We saw at least 30% performance improvement over bebbo. I guess the increased file size comes from LTO.

Last edited by Bartman; 08 November 2022 at 16:04.
Bartman is offline  
Old 31 January 2023, 14:15   #38
carrion
Registered User
 
carrion's Avatar
 
Join Date: Dec 2016
Location: Warsaw area
Posts: 152
I started using this extension on M1 mac. Works great. Thanks for doing this. It's really amazing with all these features.
I switch now from my own VBCC+VSCode setup to this one, but it already looks impressive. Thanks Again.
carrion is offline  
Old 31 October 2023, 10:28   #39
warci
Registered User
 
Join Date: May 2014
Location: Belgium
Posts: 38
Hi all, is there a guide somewhere on how to get this working on OSX?
warci is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amiga Assembly VSCode extension v1.0 prb28 Coders. Releases 3 28 November 2021 17:00
Games ScummVM Supports on Amiga IvanEBC support.Games 54 22 January 2021 20:35
Pre-release vscode amiga assembly with WinUAE integration prb28 Coders. Asm / Hardware 31 30 November 2020 21:54
Features requests for vscode amiga assembly extension ? prb28 Coders. General 0 27 December 2018 16:19
only one database for all systems(Windows, macOS, Linux ...) Dic_Ray support.FS-UAE 2 28 December 2016 20:22

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:32.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.14273 seconds with 13 queries