21 October 2019, 19:41 | #21 | |
Registered User
Join Date: Dec 2018
Location: Málaga
Posts: 61
|
Quote:
Bebbo, thanks for your compiler. Your compiler supports C++ STL and it's easier develop Amiga code using the power of GCC 6.4/6.5 libraries. I think it's a very great contribution to Amiga World. |
|
21 October 2019, 20:15 | #22 | |
Registered User
Join Date: Dec 2016
Location: England
Posts: 87
|
Quote:
I literally only chose the 8.3 GCC version due to the source debugging features, and sadly I don't have enough VSCode extension knowledge to do anything about it I know @prb28 (can you actually tag people on here?) was working on something, but it's not been updated for a few months. |
|
21 October 2019, 21:26 | #23 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
You can also source debug with my tool chain... -> use bgdbserver. Plus you can debug a real Amiga. |
|
21 October 2019, 22:12 | #24 | |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Quote:
No tag, but I scan the unread posts on EAB... 1- Install C/C++ extension and amiga assembly extension. 2- Clone this project: https://github.com/prb28/vscode-amig...ster/build-gcc 3- add all the bebbo's gcc binaries in the build-gcc directory. 4- Get the bin dir from https://github.com/prb28/vscode-amig...ses/tag/0.18.1, select it according to you os. 5- Build your workspace with ctrl (or cmd) / shift / B -> it runs the makefile. You'll have a new amiga binary in the fs-uae dir : fs-uae/hd0/hello. 6- Select the run configuration -> it will start fs-uae with gdbserver in the Startup-Sequence pointing to the amiga binary generated. 7- Place a breakpoint in the hello.c file. 8- Select the debug configuration and start it. Still a complex procedure. |
|
21 October 2019, 22:30 | #25 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
I agree, the setup is more complex. And you can automate the deployment and bgdbserver starting, as I with Eclipse. a) run bgdbserver in a shared folder (shared from WinUAE and the PC). Do this only once - until bgdbserver gets killed. b) add post build steps b1) copy the stripped file to the shared folder using m68k-amigaos-strip <program> -o <folder>/<program>, the debug info is not necessary on the Amiga side. b2) send via tcp "gdbserver :2345; <program> [<parameters>]\r\n" where 2345 is the port number to use b3) start m68k-amigaos-gdb <program> and issue the command "target remote :2345" (use your port number) this connects your gdb with the bgdbserver in WinUAE. Maybe you can automate some of these steps, as it's done in Eclipse? |
|
21 October 2019, 23:56 | #26 |
Registered User
Join Date: Dec 2016
Location: England
Posts: 87
|
prb28, I got it working, with a bit of tinkering.
bgdbserver could never find sys:hello when you select the "run" configuration, bgdbserver says `failed to load program sys:hello`so I added /r /n to the end of the bgdbserver command in Startup-sequence. Also, I had to add this to launch.json, otherwise it fails with cannot find file /hello.c on windows: Code:
"windows": { "MIMode": "gdb", "miDebuggerPath": "${workspaceFolder}/amiga-gcc/bin/m68k-amigaos-gdb.exe", "sourceFileMap": { "/": "${workspaceFolder}" }, }, |
22 October 2019, 10:29 | #27 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
I've not used it more that 10mn on a old osx, so I'm not surprised it wasn't straightforward.
Thanks for your feedback, I'll add it to the example, with more explanations on the way to prepare the workspace. It may be useful to someone else. |
22 October 2019, 10:39 | #28 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
|
22 October 2019, 10:52 | #29 |
Registered User
Join Date: Dec 2016
Location: England
Posts: 87
|
|
22 October 2019, 11:07 | #30 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
|
22 December 2020, 12:37 | #31 | |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
Quote:
[ Show youtube player ] |
|
22 December 2020, 13:11 | #32 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,801
|
Awesome, thanks for sharing.
|
22 December 2020, 15:27 | #33 |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
Very nice sprite explanation.
|
30 January 2021, 15:07 | #34 |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
Another video on blitter area fill and line mode. Very nice visual explanations
[ Show youtube player ] |
30 January 2021, 18:05 | #35 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,801
|
Awesome!
|
30 January 2021, 20:34 | #36 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
Thanks for sharing.
Very good C tutorials!! |
20 February 2021, 21:34 | #37 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
Another video from Wei-ju Wu, this time a tutorial about sound
[ Show youtube player ] |
21 February 2021, 03:18 | #38 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
|
Definitely take the tutorials and make them your own! That's the whole point!!
And also check out Wei-ju Wu's series "Amiga Hardware Programming in C"! All but a very few languages can "poke" - DO take advantage of abstractions. Framework/compiler - you decide what helps and hinders your control over the final binary (also true for Asm to a degree). |
31 March 2021, 00:15 | #39 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
He did it again!!
[ Show youtube player ] Another great video with a C tutorial from Wei-ju Wu's |
10 May 2021, 10:22 | #40 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
Another amazing C tutorial from Wei-ju Wu's
[ Show youtube player ] Last edited by AlfaRomeo; 10 May 2021 at 10:35. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
So I 'cracked' Photon Storm. What do you guys think? | MethodGit | Coders. General | 3 | 05 August 2012 02:41 |
Photon's A1700 | Photon | Hardware mods | 43 | 25 December 2011 15:30 |
Photon Storm | Marlon | request.Old Rare Games | 11 | 07 September 2007 19:34 |
asm tuts | BippyM | Coders. Tutorials | 61 | 12 January 2007 15:39 |
Photon Storm | Tim Janssen | request.Old Rare Games | 9 | 12 September 2002 22:02 |
|
|