Hi Jeff, Please take a look at these pull requests and commits to get a general idea of what it takes to port Swift to a new platform:
https://github.com/apple/swift/pull/2541 https://github.com/apple/swift/pull/979 https://github.com/apple/swift/commit/83751888c73de2504cbfa87906adf7c526d6fc65 Dmitri On Sat, Jun 11, 2016 at 4:36 AM, Jeff Ramsey <jramsey...@gmail.com> wrote: > Dmitri, > > Can you point me to the general areas that would need changes for 32-bit and > I'll look to see what would be needed? Thanks. > > Jeff > >> On Jun 11, 2016, at 12:31 AM, Dmitri Gribenko <griboz...@gmail.com> wrote: >> >> Hi Jeff, >> >> Karl is right. Swift is not ported to 32-bit Linux right now -- >> sorry! We would welcome contributions from the community to fill this >> gap. I would be happy to review the patches and discuss any issues >> that come up. >> >> Dmitri >> >>> On Fri, Jun 10, 2016 at 8:06 PM, Karl <razie...@gmail.com> wrote: >>> i686 is a 32-bit system, right? We don’t support Intel 32-bit on Linux >>> (yet?). The only Intel Linux target is x86_64. >>> >>> >>> On 10 Jun 2016, at 20:18, Jeff Ramsey via swift-users >>> <swift-users@swift.org> wrote: >>> >>> Here you go Dmitri. It's an older Dell 1501 that was given to me; I wiped >>> it and put Ubuntu on it. Thanks. >>> >>> Python 2.7.6 (default, Jun 22 2015, 18:00:18) >>> [GCC 4.8.2] on linux2 >>> Type "help", "copyright", "credits" or "license" for more information. >>>>>> import platform >>>>>> print(platform.system()) >>> Linux >>>>>> print(platform.machine()) >>> i686 >>>>>> >>> >>> Here's some additional information if it's useful: >>> >>> ~/swift$ lsb_release -a >>> No LSB modules are available. >>> Distributor ID: Ubuntu >>> Description: Ubuntu 14.04.3 LTS >>> Release: 14.04 >>> Codename: trusty >>> >>> ~/swift$ uname -a >>> Linux Inspiron-1501 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:02 >>> UTC 2015 i686 athlon i686 GNU/Linux >>> >>> >>> >>> On Fri, Jun 10, 2016 at 12:31 PM, Dmitri Gribenko <griboz...@gmail.com> >>> wrote: >>>> >>>> On Fri, Jun 10, 2016 at 9:14 AM, Jeff Ramsey via swift-users >>>> <swift-users@swift.org> wrote: >>>>> I followed directions here to clone the compiler source and build it on >>>>> Ubuntu 14.04: >>>>> >>>>> https://github.com/apple/swift/blob/master/README.md >>>> >>>> Hi Jeff, >>>> >>>> Which architecture are you running on? >>>> >>>> Could you run "python" in the terminal, type the following script, and >>>> send me the output? >>>> >>>> import platform >>>> print(platform.system()) >>>> print(platform.machine()) >>>> >>>> Dmitri >>>> >>>> -- >>>> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if >>>> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/ >>> >>> >>> _______________________________________________ >>> swift-users mailing list >>> swift-users@swift.org >>> https://lists.swift.org/mailman/listinfo/swift-users >>> >>> >> >> >> >> -- >> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if >> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/ -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/ _______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users