Questions tagged [fat-binaries]

23 questions
51
votes
1 answer

CUDA: How to use -arch and -code and SM vs COMPUTE

I am still not sure how to properly specify the architectures for code generation when building with nvcc. I am aware that there is machine code as well as PTX code embedded in my binary and that this can be controlled via the controller switches…
bweber
  • 3,772
  • 3
  • 32
  • 57
19
votes
4 answers

How do i compile a static library (fat) for armv6, armv7 and i386

I know this question has been posed several times, but my goal is slightly different with regard to what I have found searching the web. Specifically, I am already able to build a static library for iPhone, but the final fat file I am able to build…
Massimo Cafaro
  • 25,429
  • 15
  • 79
  • 93
14
votes
1 answer

Fat Framework Script for Xcode 10?

I used this script in the post-action of the archive in my scheme to make a FAT binary framework. One that will work on the simulator and actual device. https://gist.github.com/gauravkeshre/eabb2a13ef6d673fadec84ca60b56b05 Does anyone know how to…
Aaron Bratcher
  • 6,051
  • 2
  • 39
  • 70
8
votes
2 answers

How to bind 64-bit and 32-bit executable into one?

Alright so my idea was some way to bind both 64-bit and 32-bit Windows executables into one application so if it doesn't run the 64-bit version it would then try the 32-bit one. I was reading up about PE's and learned a little about MS-DOS Real Mode…
8
votes
1 answer

Does there exist a universal or "fat" class file for Java?

A fat binary is a binary that can be run on more than one architecture. Basically, it consists of a program compiled twice, once for each architecture, then written to the same file. Probably the best known example is Apple's "universal" binaries,…
user377628
5
votes
3 answers

Roll 64-bit and 32-bit versions of an app into the same binary?

We have an application we're trying to deploy on both 64 bit and 32 bit platforms. Is there a way to put both compiled versions of the code in the same binary, a la Apple and NeXT's fat binaries? Ideally we could ship one .exe that decides upon…
lfaraone
  • 49,562
  • 17
  • 52
  • 70
5
votes
2 answers

Building iPhone static library for armv6 and armv7 that includes another static library

I have an Xcode project that has a "master" static library target, that includes/links to a bunch of other static libraries from other Xcode projects. When building the master library target for "Optimized (armv6 armv7)", an error occurs in the last…
Martijn Thé
  • 4,674
  • 3
  • 29
  • 42
4
votes
2 answers

what are the parameters for __cudaRegisterFatBinary and __cudaRegisterFunction functions?

I came across two functions __cudaRegisterFatBinary() and __cudaRegisterFunction() I understand nvcc injects it into the source code to get the handle to the compiled cubin and to register the program with the runtime. Can some one explain me or…
ash
  • 1,170
  • 1
  • 15
  • 24
3
votes
2 answers

How to run Makefile in mac

I want to create a fat library in mac. So I foll this. I copied the content of makefile into an edit text and renamed it to Makefile.mak. I opened the terminal in where the makefile is located and types "make" in the terminal and hit enter. I am…
Randi
  • 639
  • 2
  • 6
  • 23
3
votes
3 answers

Fat Binary on Windows?

I know that on Mac OS X, you can combine multiple binaries that target different architectures into a single binary using lipo. I am wondering if there is a similar solution on the Windows side. Thank you.
rwb
  • 621
  • 1
  • 12
  • 21
3
votes
3 answers

Proper way to make a fat binary prefer to be 32bit on 64bit OS X 10.6?

Suppose I ask the user "do you want to run in 32bit mode or 64bit mode" and they pick 32bit. How do I register this fact with the operating system? I've looked at the arch command, but I don't want to have to write a script that wraps the binary. …
i_am_jorf
  • 53,608
  • 15
  • 131
  • 222
2
votes
2 answers

CMake + Xcode: how to select arm64 vs x86_64 libraries?

We have a CMake based project targeting Xcode, and must include a precompiled 3rd party library which supplies separate arm64 and x86_64 binaries. What we have working now is to simply attach both binaries like add_library( someLib INTERFACE…
yano
  • 4,095
  • 3
  • 35
  • 68
2
votes
1 answer

Under iOS, does anyone know how UUID's are generated for executables and what information may be encoded therein?

Applications compiled on iOS are assigned identifiers (UUID's) at compile time. These identifiers may be revealed by the dwarfdump tool. Does anyone know how UUID's are generated and what information may be encoded within them?
xyzzycoder
  • 1,831
  • 13
  • 19
1
vote
1 answer

Can I combine a "static" CUDA kernel launch with PTX code and get a working binary?

Suppose I take a CUDA program - for example the CUDA vectorAdd sample, and cut out the kernel's implementation, but still have the launch command: vectorAdd<<>>(d_A, d_B, d_C, numElements); and suppose that I write…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1
vote
1 answer

How to understand the comments about fat_arch_64 in 'mach-o/fat.h'

Recently, I'm learning some materials related to Mach-O and noticed the comment When a slice is greater than 4mb or an offset to a slice is greater than 4mb then the 64-bit fat file format is used. in 'mach-o/fat.h' about struct fat_acrh_64 I know…
yuyeqingshan
  • 381
  • 3
  • 13
1
2