Where Does Rosetta Live?

Discussion in 'macOS' started by arcobb, Apr 10, 2007.

  1. arcobb macrumors regular

    Joined:
    Feb 3, 2005
    Location:
    Colorado
    #1
    Where does the Rosetta "app" live on the hard drive? I know we aren't supposted to see it, but I was curious where it is.

    I've looked around for this and I haven't found a thread that describes it ... so If you know please point me in the right direction. Thanks!
     
  2. FF_productions macrumors 68030

    FF_productions

    Joined:
    Apr 16, 2005
    Location:
    Mt. Prospect, Illinois
    #2
    It's not an app, it's just an invisible process that just happens. It's built in somewhere in the system folder...
     
  3. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #3
    Just having a little look at the list of open files when textedit is run in rosetta and when it is not. There are about 30 extra files when run in rosetta but the interesting one that stands out is /usr/libexec/oah/translate. Could well be "rosetta" i looked at the Get Info window for it and doesn't mention anything interesting. I am not really going to mess around with it because it is hidden for a reason.

    Edit: Though Fu*k it, opened the file and it report this in terminal

    Seems more and more like rosetta to me

    Edit 2: Inside the oah directory there is the translate unix executable but there is also a directory called "Shims" IIRC a shim is a way of altering code. There seems to be a common reference to "BrutusSystemShims" inside the plist entries.
     
  4. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #4
    Rosetta runs under a daemon called translated.

    Somehow, my friend actually killed rosetta. He can't run any PPC apps anymore. No idea how he did it, but he killed it and I can't find any sign of it.
     
  5. rogersmj macrumors 68020

    rogersmj

    Joined:
    Sep 10, 2006
    Location:
    Indianapolis, IN
    #5
    Did he run something like Monolingual? Countless people (myself included, and to this day I feel like an idiot) break Rosetta by running Monolingual in an attempt to free up disk space. It's quite easy to delete PPC files using a clenup program like that.
     
  6. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006
    #6
    I'll have to ask. I had no idea that Monolingual would be so badly written that it would damage Rosetta. Just goes to show you, you really ought to ask questions about why an app needs to run as root.
     
  7. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #7
    I have nothing to do with the Monolingual developers but it's not badly written: it's User Error. It offers to strip the non-Intel parts of Universal binaries and the related PPC libraries from your system if you, the user want to. If you say yes it does what you ask. Without the PPC libraries no PPC code can be run under Rosetta as it need the PPC libraries.
     
  8. richyfp macrumors member

    Joined:
    Apr 13, 2004
    #8
    I'm not sure how Rosetta works, but I do know that you can find out which running apps are being translated using the following:
    Code:
    lsof | grep translate
    @xUKHCx: SHIM stands for Software/Hardware Integration Medium; it's a language with C-like syntax that's able to provide a "bridge" between software and hardware. In SHIM, it's possible to define one collection of "hardware processes" and software functions and have the SHIM compiler generate C code and also VHDL code, which is able to describe the hardware on which the C code is to run. I don't know if this is the same as what's being used in Rosetta, but it's a plausible explanation...
     
  9. arcobb thread starter macrumors regular

    Joined:
    Feb 3, 2005
    Location:
    Colorado
    #9
    Interesting stuff ... thanks for the replies!
     
  10. richyfp macrumors member

    Joined:
    Apr 13, 2004
    #10
    Also, I just randomly hit upon this, which confirms that "translate" is indeed what we know as Rosetta:

    Code:
    $ sysctl kern.exec
    kern.exec.archhandler.powerpc: /usr/libexec/oah/translate
     

Share This Page