New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

How to tell if an application is 64bit


Post Reply New Thread Subscribe

 
Thread Tools
gumba128

 
Member Since: Jun 15, 2011
Posts: 35
gumba128 is on a distinguished road

gumba128 is offline
How can I tell if my google chrome is 64 bit.. I know I can use the "file" command but where is the executable? is the .app file the executable? I'm just wondering how os-x knows how to launch the application when clicking the .app file. There must be some information that tells the OS where the binary is...app seems like it's analogous to .exe on windows but yet I can get package contents so I'm a bit confused. I tried googling but can't really find anything on how applications are launch on mac and how the OS knows where to find the executable.. This all came about because I'm thinking of building the 64 bit chromium. anyone using 64 bit chromium? is it worth building? of course I'll need to install another 4 gigs of ram if I really want to take advantage of the 64 bit.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,823
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Chrome is 32-bit only so it won't be running as a 64-bit binary. For other apps, you can always use Activity Monitor and look under the "Kind" column. As for the binaries in app bundles, you can find them in the <app name>/Contents/MacOS folder.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
gumba128

 
Member Since: Jun 15, 2011
Posts: 35
gumba128 is on a distinguished road

gumba128 is offline
when I click the binary in the MacOS ( in chrome case ) or if I try to run it from command line "./Google Chrome", it crashes cause it seems that it can't find the resources. why can't it find the resources yet when I click the .app file it launches? In other words.How do I launch google chrome from the command line?
QUOTE Thanks
gumba128

 
Member Since: Jun 15, 2011
Posts: 35
gumba128 is on a distinguished road

gumba128 is offline
Think I found it..I need the "open command" still one question I have though..The MacOs usually contains the executable or the main entry point for the application so if it were 64 bit wouldn't "file <executable>" tell me if it was 64 bit or is it not always the case if it's just an entry point into the application? cause the executable in google chromes case is only 15 kb so I don't think that's the actual application itself so I'm not sure if "file " would really tell me anything
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,823
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
file will tell you that it's an x86 app:
Code:
~ :: file /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary 
/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary: Mach-O executable i386
If it was a 64-bit, you'd see something like the following:
Code:
~ :: file /Applications/VLC.app/Contents/MacOS/VLC 
/Applications/VLC.app/Contents/MacOS/VLC: Mach-O universal binary with 2 architectures
/Applications/VLC.app/Contents/MacOS/VLC (for architecture x86_64):	Mach-O 64-bit executable x86_64
/Applications/VLC.app/Contents/MacOS/VLC (for architecture i386):	Mach-O executable i386
As you can see, VLC is compiled as both a 32bit and 64bit application.

As for why "./Google Chrome" didn't work, you forgot to escape the space:
Code:
./Google\ Chrome

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
gumba128

 
Member Since: Jun 15, 2011
Posts: 35
gumba128 is on a distinguished road

gumba128 is offline
I'll try it when I get home later..Thx for ur reply..I also learned how to escape the space and about google canary
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,823
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Yeah, Canary is for those who like really the bleeding edge. It's "one step up" from the dev builds. Updates are more frequent as well.

As for the space escaping, it's a common mistake. Just remember that if you don't escape it, bash will think that everything after the space is a parameter for the application that you're trying to execute. For instance, if you don't escape "./Google Chrome", bash will try to execute a binary called "Google" and send "Chrome" as a parameter. Or, if you sent it "./Google Chrome Canary", it would send "Chrome" and "Canary" as parameters to "Google."

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
gumba128

 
Member Since: Jun 15, 2011
Posts: 35
gumba128 is on a distinguished road

gumba128 is offline
Gotcha..Thanks again . So do you think it's worth building 64bit Chromium?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,823
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
No and you can't - 64-bit support is only available for the Linux source (here). Even if you could, there's absolutely no reason to need a 64-bit browser at this time.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
gumba128

 
Member Since: Jun 15, 2011
Posts: 35
gumba128 is on a distinguished road

gumba128 is offline
So what are some reasons why we don't need a 64 bit browser at this time or what the benefits would be? I noticed safari that came with my mac is 64 bit..
QUOTE Thanks
gumba128

 
Member Since: Jun 15, 2011
Posts: 35
gumba128 is on a distinguished road

gumba128 is offline
I mean I guess u really don't want a browser using more than 4 gigs or ram anyway
QUOTE Thanks

Post Reply New Thread Subscribe


« Sharing and Permission Default? | how to spot an intruder? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
A Switchers guide to recommended free Apps to download to your new Mac the8thark Switcher Hangout 67 03-19-2013 10:48 AM
iTunes as a 64bit Application ?? TattooedMac OS X - Apps and Games 25 01-08-2011 05:31 PM
Launching an application while executing an applescript? Commander_FarkU OS X - Development and Darwin 0 06-13-2010 09:32 PM
Facebook application facebuck55 iPod Hardware and Accessories 8 12-11-2009 07:14 PM
relaunch an application in OS X Leopard jomafaki OS X - Development and Darwin 0 06-19-2009 10:28 AM

All times are GMT -4. The time now is 04:50 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?