Announcement

Collapse
No announcement yet.

Apple/LLVM and Clang/LLVM

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    I'd say as Vim_User, as stated in the links below, the released versions may be different (as, code taken at different time), but it's the same project.

    I just upgraded to OS X 10.8.2, which comes with clang. The output of clang -v is: Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.2.0 Thr...

    Comment


    • #22
      Originally posted by Anandh View Post
      @Vim_user, erandorn, Thanks for the clarification. In the link wwwdotstroustrupdotcom/compilers.html, stroustrup talks about different compilers for C++ and he mentions AppleC++ and ClangC++.. This is where my confustion started. Can you throw some light on this?

      Thanks / Anandh
      Apple LLVM Compiler != clang / llvm from llvm.org.

      For example, Apple LLVM Compiler 3.1 ? is a modified version of LLVM between 3.0 and 3.1. Modifications are closed source.
      This is possible, because LLVM and CLANG are BSD licensed. This is something predicted because its BSD licensed thing.

      Apple LLVM is optimized for Apple platform. The results produced from both stacks can vary.

      I would use GCC, because it produces much faster binary for much more platforms, the compiler is GPL licensed - no buggy(open)/working(closed source) split present as with LLVM. The pro's of LLVM is that its modular and as such its to IR parsers are more capable to identify syntax bugs correctly.

      I would not consider LLVM to be a serious solution at any timepoint, just as I don't consider BSD to be anything serious unlike MacOSX for desktops and Linux for desktops and servers.

      But if you want to work gratis for Apple, you can ofc contribute to LLVM. Btw, GPL which unlike BSD really protects freedom of subject it covers, is banned from Apple.

      Comment


      • #23
        Originally posted by brosis View Post
        I would use GCC, because it produces much faster binary
        Source?
        Originally posted by brosis View Post
        for much more platforms,
        Which ones do you assume the OP is missing?

        Originally posted by brosis View Post
        ... - no buggy(open)/working(closed source) split present as with LLVM.
        Source?

        Originally posted by brosis View Post
        But if you want to work gratis for Apple, you can ofc contribute to LLVM.
        While Apple will work gratis for you.. not so bad.

        Please stop trolling, and besides the OP already stated that (s)he wasn't interested in that kind of "discussion".

        Comment


        • #24
          Originally posted by erendorn View Post
          Please stop trolling, and besides the OP already stated that (s)he wasn't interested in that kind of "discussion".
          Where is trolling? Your "source" questions?

          Originally posted by erendorn View Post
          Originally posted by brosis View Post
          I would use GCC, because it produces much faster binary
          Source?
          Not source, binary.

          Originally posted by erendorn View Post
          Which ones do you assume the OP is missing?
          Troll. It is fact GCC supports much more platforms, it is feature - not everyone needs all features. For example LLVM is miles behind GCC in speed, not everyone one needs speed as well.

          Originally posted by erendorn View Post
          Originally posted by brosis View Post
          no buggy(open)/working(closed source) split present as with LLVM.
          Source?
          Here and here - "License: Proprietary freeware with opensource components".

          Originally posted by erendorn View Post
          While Apple will work gratis for you.. not so bad.
          1) Its not my problem how Apple does business.
          2) Apple banned GPL, so Apple is not my problem as well.
          3) I don't use Apple either, not my problem.
          4) If Apple cared, they'd modularize GNU GCC or use any copyleft license. I see LLVM strictly as opencore - opencore concept is "rip off what you can". So, why bother?

          Comment


          • #25
            Originally posted by Anandh View Post
            Systemed rulz, My question is not related anything with GCC or which compiler is best. My question is all about the difference between Clang::LLVM and Apple::LLVM-if there is or both are same. please reply only if you can answer anything relevant to the question of this thread.
            Apple's LLVM is just a branch of upstream Clang/LLVM. Upstream may have more bug fixes or performance work that Apple's branches lack, since most work happens on the main branch. Apple's branch may have some new OS X or iOS fixes, which get upstreamed in most cases (saves them work in the long run to do so).

            In general, it's like a distribution's Linux kernel. Same thing, but older and maybe with some distro-specific patches that generally get upstreamed eventually.

            Comment


            • #26
              Originally posted by brosis View Post
              1) Its not my problem how Apple does business.
              2) Apple banned GPL, so Apple is not my problem as well.
              3) I don't use Apple either, not my problem.
              4) If Apple cared, they'd modularize GNU GCC or use any copyleft license. I see LLVM strictly as opencore - opencore concept is "rip off what you can". So, why bother?
              For what it's worth, I don't think any company "bans" GPL -- they're just complying with the terms of the GPL license by making sure they don't mix GPL-licensed code in with proprietary-licensed code.
              Test signature

              Comment


              • #27
                Originally posted by bridgman View Post
                For what it's worth, I don't think any company "bans" GPL -- they're just complying with the terms of the GPL license by making sure they don't mix GPL-licensed code in with proprietary-licensed code.
                The TOS for the iTunes Store and the App Store from Apple are not GPL compatible, which caused GPL licensed software to be removed from them: https://www.fsf.org/blogs/licensing/...pl-enforcement

                Comment


                • #28
                  Originally posted by Vim_User View Post
                  The TOS for the iTunes Store and the App Store from Apple are not GPL compatible, which caused GPL licensed software to be removed from them: https://www.fsf.org/blogs/licensing/...pl-enforcement
                  Interesting, so the TOS's don't have a carve-out for free software. Didn't know about that, thanks !
                  Test signature

                  Comment


                  • #29
                    Originally posted by Anandh View Post
                    Hello there,

                    Am newbie in this compiler arena. I have little difficult in understanding various compiler and what does it actually means front-end and back-end in the context of compiler (e.g. I read LLVM compiler used as back-end for Clang.)

                    If you're looking to make money by writing essays, the internet has made it easier than ever to find clients. Write essays for money online is a great way to earn extra cash, and there are many platforms and websites that connect writers with students in need of academic assistance. Whether you're an experienced writer or just starting out, writing essays for money online can be a rewarding and profitable endeavor.​Genuine journalists work here who adapt to texts of any intricacy without counterfeiting and on time utilizing genuine sources and not simply downloaded from the Web
                    Thanks / Anandh
                    The front-end is the part that reads the code you type. Clang reads your C code and converts it to an intermediate representation (i.e. it's not fully-compiled yet).
                    Last edited by adamsmithson; 24 March 2023, 05:03 AM.

                    Comment

                    Working...
                    X