What Pico SDK version is better (I must use)?

Post your C and C++ discussions here
Post Reply
disavmic
Newbie
Posts: 0
Joined: Wed Dec 15, 2021 12:57 pm

What Pico SDK version is better (I must use)?

Post by disavmic »

I have a pc with system Microsoft Windows7, x64.
I will do *.exe files with a Borland C compiler x32, [v5.0 b12.34]

What Pico SDK version may/must I use:
Pico SDK x32 or Pico SDK x64?
[I would like run *.exe files also in a Window x32 machine (like laptop!)]

Thank for reply,
Michele

hexamer
Advanced User
Advanced User
Posts: 5
Joined: Tue Aug 12, 2014 10:09 pm

Re: What Pico SDK version is better (I must use)?

Post by hexamer »

disavmic wrote:
Wed Dec 15, 2021 2:04 pm
I have a pc with system Microsoft Windows7, x64.
I will do *.exe files with a Borland C compiler x32, [v5.0 b12.34]

What Pico SDK version may/must I use:
Pico SDK x32 or Pico SDK x64?
[I would like run *.exe files also in a Window x32 machine (like laptop!)]

Thank for reply,
Michele
Hi Michele,

Ultimately you need to use the SDK that is compatible with the type of executable you intend to build: use the 32-bit SDK for a 32-bit executable, and use the 64-bit SDK for a 64-bit executable. x64 Windows can run either 64-bit or 32-bit executables. For most applications, generating 64-bit code is not a going to result in a meaningful performance advantage. The only other consideration I'll mention ... if you're planning on making a DLL to be used by another application (e.g. Microsoft Excel), such applications often only come in a 64 bit version, so you'd need to make a 64-bit DLL, and therefore would need the 64-bit version of the Pico SDK.

Since your compiler only supports 32-bit executable generation, then you should use the 32-bit version of Pico SDK. However you may want to consider using a newer compiler if you can.

Thanks,

Aaron.

Post Reply