English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 26 December 2022, 03:32   #1
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
AmiSSL and VBCC on AmigaOS3

Hi all!

I want to use AmiSSL in AmiModRadio to access the modules available at modules.pl via HTTPS.

I'm compiling the given examples and even "smaller" examples but the compilation is taking sooooo long I defined AMISSL_NO_STATIC_FUNCTIONS but still it's slow at compiling. I know from here and there that AmiSSL has been tested with GCC on AmigaOS3 and VBCC on AmigaOS4.

Maybe there are other things that I should do?

Cheers!
tygre is offline  
Old 26 December 2022, 09:49   #2
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 925
Do you compile it on a real Amiga? I cross compile, using an old core2duo machine and I would not say it’s slow, but using AmiSSL is definitely noticeable. Without it, the compile is more or less instant, but with it, it takes a couple of seconds (3-4).
patrik is offline  
Old 26 December 2022, 21:00   #3
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Yes, I'm doing everything (except version control) on my Amiga 1200/060 and adding AmiSSL-related includes really, really slow the compilation...
tygre is offline  
Old 27 December 2022, 00:15   #4
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 925
Quote:
Originally Posted by tygre View Post
Yes, I'm doing everything (except version control) on my Amiga 1200/060 and adding AmiSSL-related includes really, really slow the compilation...
I understand, I have tried that too, it takes a long time.

One workaround I suspect would speed up the compile quite a lot would be to create minimal versions of the VBCC proto define files <inline/amissl_protos.h and <inline/amisslext_protos.h>, which only contain the AmiSSL/OpenSSL functions you actually use.

Another idea would be to keep the network code in a separate file and compile it to an object file, which is linked to the rest in the final step. That way only time the slow compile happens is when you change that part of the code and not the rest.
patrik is offline  
Old 27 December 2022, 01:59   #5
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Thank you very much for your kind advice!

I'm going to try just that and hopefully get back to "reasonable" compile times, will keep you posted

Last edited by tygre; 27 December 2022 at 01:59. Reason: Typos
tygre 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
AmiSSL 4.9 Now Available Futaura News 4 06 April 2021 19:44
New AmiSSL v4.6 stevelord News 1 09 June 2020 13:42
AmiSSL 4 Robbie support.Apps 62 17 February 2020 19:54
AmiSSL 4.0 Sir_Lucas News 6 09 February 2017 12:45
new AmiSSL hal9000 support.Apps 1 14 August 2016 18:23

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 10:38.

Top

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