How can i compile my C++ code to PowerPC Big-Endian - windows

I want to to compile my C++ code into PowerPC ELF file which is Big Endian, i'm on windows and i already have GCC compiler installed with Eclipse, CodeBlocks, Visual Studio, RAD C++ Builder, and Qt, each one has specific use, can that be done with GCC? or is there any other compiler for that?

See the compiler options here:
https://gcc.gnu.org/onlinedocs/gcc/RS_002f6000-and-PowerPC-Options.html

Related

Will it work to use swig director to call a go function from C/C++ library built with MSVC in Windows

I am trying to use swig (4.1.1) to call a go function from C/C++ library built with MSVC (VS2015) in Windows. I used swig director feature do that. But the go function was never hit, and didn't report any error in C/C++ library, all C++ code before and after the callback runs fine.
When I built the same C/C++ library with TDM-GCC in Windows, it works fine, and the go function can be hit successfully.
I also tried the same code in Linux (C/C++ library was built with GCC), it also works fine.
I understand CGO doesn't support MSVC compiler, I am in full control of C/C++ library code and Go code, but I must use MSVC to built C/C++ library, is there any way to work around this callback issue in Windows?
Thanks,

gcc can't find cuda_runtime.h even though path is provided with -I flag (cygwin) [duplicate]

I'm trying to build a simple application with CUDA and I've been trying for hours on end and I just can't make it work on windows. nvcc absolutely refuses to compile without Visual Studio's compiler which doesn't support things I need. I tried building using nvcc with clang but It just asks me to use Visual Studio's compiler. I've also tried using clang directly since it now supports CUDA but I receive this error:
clang++.exe: error: Unsupported CUDA gpu architecture: compute_52
This makes no sense to me because I have the CUDA toolkit version 7.5 and my graphics card is a GTX 970 (two of them). I have googled this extensively and everywhere I come across the error the person always has is their CUDA toolkit is < 7.5. I'm on the brink of tears right now trying to get something as simple as VLA to work on this CUDA application and I just can't achieve it...
The CUDA windows toolchain requires the Visual Studio C++ compiler. You cannot use anything else on that platform. If the VS compiler doesn't support the language features you need within CUDA host code, you have no choice but to change platforms, or your expectations.
You can still potentially compile non-CUDA host code using another compiler and then link that code using NVCC and the VS toolchain.
Try to use clang-cl, --cubin=clang-cl.exe
It may be worth to work on a Linux VM or WSL2 within windows. As per the CUDA docs.
To compile new CUDA applications, a CUDA Toolkit for Linux x86 is
needed. CUDA Toolkit support for WSL is still in preview stage as
developer tools such as profilers are not available yet. However, CUDA
application development is fully supported in the WSL2 environment, as
a result, users should be able to compile new CUDA Linux applications
with the latest CUDA Toolkit for x86 Linux.
https://docs.nvidia.com/cuda/wsl-user-guide/index.html#:~:text=However%2C%20CUDA%20application%20development%20is,becomes%20available%20within%20WSL%202.

How can I inspect variable values while debugging MSVC ABI Rust programs?

I've downloaded the MSVC ABI version of Rust 1.7.0 and followed the guessing game section from the docs.
I notice that the builds use the native toolchain (Visual Studio 2015 Update 2 in my case) and therefore generate native PDBs (debugging symbols) consumable by native debuggers, such as WinDBG, CDB or the Visual Studio debugger. I can easily set breakpoints, step into standard library source and so on.
What I cannot do is to inspect variable values. Regardless of the debugger used, the 'Locals' display is empty.
From what I can gather, the Visual Rust/RustDT IDEs display locals when using GDB or LLDB as a backend, not the native Windows debugging engine. I'm not entirely sure if I can use these to debug Rust programs compiled for MSVC ABI (with PDBs and so on).
If I want to have the necessary debugging experience, is my only option to switch to the GNU ABI? Barring that, is there an easy way to map to Rust symbols (variable values) from the raw debugging tools (registers, memory map)?
Features don't exist until they're implemented. Rust is built upon LLVM and full PDB support has only recently been considered for LLVM. For now LLVM has only a limited PDB support, with the limitations best described on the Clang project's MSVC compatibility page. In my opinion, it's best to wait until the support is there, although for other programming languages interesting workarounds have been implemented.

Chossing between visual c++ and gcc to compile c++ programs mainly for studying purposes

I am moving from g++ to visual studio mainly for c++ coding , i wanted to ask that whether microsoft's c++ compiler supports all the features of c++11 and c++14 as supported by g++ .
Here's a compatibility table for various compilers.
You should look under the MSVC column to see what support offers the Microsoft compiler.
At a quick glance it seems that they implement most of the same features (using gcc 5 and MSVC 14 as reference), although there are small differences.

ffmpeg compiling on MSVC9 (Visual C++ 2008)

i want to compile ffmpeg on windows MSVC9 (Visual C++ 2008) because i want to use it in wamp server 2 which is compiled using the same compiler however am currently at a loss of how to do this as there are no visual studio solution files. I know it is possible because people have compiled dlls but i cant seem to find just how they did it . There are also some precompiled dlls here but they are incompatible with my php version 5.38. Please help
FFMPEG does not compile natively under MSVC. You'll need to compile it under mingw or download pre-built libs/dlls from here
You will be able to compile your own apps against the link libraries with MSVC though.

Resources