Re: [swift-users] Mapping C semantics to Swift

2016-05-19 Thread Ramakrishna Mallireddy via swift-users
An working example, let fm = NSFileManager.defaultManager() var mh = mach_header() // Defined as C struct, var lc = load_command() // Defined as C struct var location = 0 if let data = fm.contentsAtPath("home/user/projects/some.o") { data.getBytes(&mh, length: sizeof(mach_hea

Re: [swift-users] make swift compiler to use the precompiled module files

2016-05-03 Thread Ramakrishna Mallireddy via swift-users
me, Type, ImportLoc, /*ImportedBy=*/nullptr, >> Loaded, 0, 0, 0, ClientLoadCapabilities) returns with *OutOfDate.* >> >> These files are generated just few minutes ago, how can it be OutOfDate I >> don't have any idea. >> >> File* modules.timestamp*

Re: [swift-users] make swift compiler to use the precompiled module files

2016-04-30 Thread Ramakrishna Mallireddy via swift-users
few minutes ago, how can it be OutOfDate I > don't have any idea. > > File* modules.timestamp* under the ModuleCache Dir is 0 bytes. > > Thanks > > Ramakrishna > > On Fri, Apr 29, 2016 at 9:15 PM, Daniel Dunbar > wrote: > >> Clang will cache these automatica

Re: [swift-users] make swift compiler to use the precompiled module files

2016-04-29 Thread Ramakrishna Mallireddy via swift-users
tails on exactly > what you are seeing? > > - Daniel > > > On Apr 28, 2016, at 10:50 PM, Ramakrishna Mallireddy via swift-users < > swift-users@swift.org> wrote: > > > > I have these precompiled module files generated every-time I run the > swift compi

[swift-users] make swift compiler to use the precompiled module files

2016-04-28 Thread Ramakrishna Mallireddy via swift-users
I have these precompiled module files generated every-time I run the swift compiler. _Builtin_stddef_max_align_t-1LMTETLX3WNFT.pcm CFNetwork-1UTIO6DPB9R5P.pcm CoreFoundation-CF8BGN41VJ11.pcm CoreGraphics-3SDFP08OX46EF.pcm CoreImage-3SDFP08OX46EF.pcm Darwin-4F8STAM1KXDF.pcm Foundation-2LQ7EQYFLQOP.

Re: [swift-users] can module cache fulfils empty -sdk path. (iOS)

2016-03-31 Thread Ramakrishna Mallireddy via swift-users
small correction to my question, The flag for swift is *-module-cache-path * not *-fmodule-cache.* Thanks Ramakrishna On Thu, Mar 31, 2016 at 11:46 AM, Ramakrishna Mallireddy < ramakrishna.ma...@gmail.com> wrote: > Hi, I want to reduce the baggage & compile time for system frameworks by > prov

[swift-users] can module cache fulfils empty -sdk path. (iOS)

2016-03-30 Thread Ramakrishna Mallireddy via swift-users
Hi, I want to reduce the baggage & compile time for system frameworks by providing compiled framework pcm files. does pcm files are enough for ClangImporter(it's ok if it still needs sdk/include). Every time I run swift compiler on iOS device/simulator to compile a simple helloworld.swift file, i

Re: [swift-users] ClangImporter /var/temp dir settings..

2016-03-30 Thread Ramakrishna Mallireddy via swift-users
s, but both > Clang and Swift should be looking at the standard environment variable > TMPDIR. As long as that's set early enough in compilation, it should work > for your purposes. > > Best, > Jordan > > > > On Mar 24, 2016, at 4:34 , Ramakrishna Mallireddy via sw

Re: [swift-users] swift-llvm IR vs llvm IR

2016-03-30 Thread Ramakrishna Mallireddy via swift-users
Gregor wrote: > > > On Mar 30, 2016, at 6:46 AM, Ramakrishna Mallireddy via swift-users < > swift-users@swift.org> wrote: > > > > Does swift-llvm IR add any new IR to llvm or it's the same llvm IR. > > It’s the same LLVM IR. The difference betwee

[swift-users] swift-llvm IR vs llvm IR

2016-03-30 Thread Ramakrishna Mallireddy via swift-users
Does swift-llvm IR add any new IR to llvm or it's the same llvm IR. Thanks Ramakrishna ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users

Re: [swift-users] libswift frontend ios

2016-03-28 Thread Ramakrishna Mallireddy via swift-users
Thanks for pointing my misunderstanding of alignment issue. Now I have import path issues. When generating llvm ir from source does llvm require the import lib's too or just the import headers will be enough i.e I am assuming the linker phase come's after llvm-ir generation so header's are suffic

Re: [swift-users] libswift frontend ios

2016-03-24 Thread Ramakrishna Mallireddy via swift-users
This may be due to the fact my native OSX being an 64bit architecture. Only a 64bit compiler build work on it properly. To make simulator i386 build works properly it may required native 32bit architecture OSX. Please correct me if I am wrong. Thanks Ramakrishna M On Thu, Mar 24, 2016 at 12:25 A

[swift-users] ClangImporter /var/temp dir settings..

2016-03-24 Thread Ramakrishna Mallireddy via swift-users
How to change the temp dir path: /var/tmp/, can I input my desired path as a command argument during swift compiler invocation. Thanks Ramakrishna M ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users

Re: [swift-users] libswift frontend ios

2016-03-23 Thread Ramakrishna Mallireddy via swift-users
If I build for simulator x86_64 then I am not getting *Assertion failed: ((PtrWord & ~PointerBitMask) == 0 && "Pointer is not sufficiently aligned") *and able to view the llvm-ir output. so what's wrong with i386 target, any ideas where I have to look for this. Thanks Ramakrishna On Wed, Mar 23,

Re: [swift-users] Waiting for mouse input in a while loop (OS X)

2016-03-23 Thread Ramakrishna Mallireddy via swift-users
Make the loop into a function. call the function everytime a mouseevent happened with appropriate input counters. var i = 1 var innerloopCounter = 1 var innerloopRunning = false // this is the os mouseevent handler func mouseevent(event:Event) { if i < toSort.count { sort(toSort) } } // ++, -- ope

Re: [swift-users] libswift frontend ios

2016-03-23 Thread Ramakrishna Mallireddy via swift-users
Finally I am able to run the swift front end [swift 2.2 released yesterday]. When running in simulator with arch i386 and debug configuration, I hit with *Assertion failed: ((PtrWord & ~PointerBitMask) == 0 && "Pointer is not sufficiently aligned"), function setPointerAndInt, file /Users/chinnari

Re: [swift-users] libswift frontend ios

2016-03-21 Thread Ramakrishna Mallireddy via swift-users
After resolving the opengles conflict with llvm code base, I am stuck at undefined symbol error, Undefined symbols for architecture i386: "(anonymous namespace)::*LoweredValue*::*$_6*::*$_7*::*~$_7()*", referenced from: (anonymous namespace)::*LoweredValue*::*LoweredValue*(*swift*::*irge

Re: [swift-users] Swift on a cluster?

2016-03-19 Thread Ramakrishna Mallireddy via swift-users
swift-lang.org is official website for Apple Swift Language. C, ObjC , C++[need to write C/ObjC wrapper] libraries can be used with swift code. The swift compiler currently works on mac & linux. On Fri, Mar 18, 2016 at 10:42 PM, Graymalk Meow via swift-users < swift-users@swift.org> wrote: > Hi

Re: [swift-users] Swift on a cluster?

2016-03-18 Thread Ramakrishna Mallireddy via swift-users
> -- > Paul Schifferer > Sent with Airmail > > On March 18, 2016 at 10:53:48, Ramakrishna Mallireddy via swift-users ( > swift-users@swift.org) wrote: > > swift-lang.org is official website for Apple Swift Language. > > C, ObjC , C++[need to write C/ObjC wrapper] libraries ca

Re: [swift-users] libswift frontend ios

2016-03-18 Thread Ramakrishna Mallireddy via swift-users
trying to look up >> things in /. >> >> Just to be sure, you know you won't be able to *execute* the LLVM IR you >> emit, right? iOS doesn't support JIT-compiled code (other than the >> JavaScript JIT). >> >> Jordan >> >> >> O

Re: [swift-users] libswift frontend ios

2016-03-14 Thread Ramakrishna Mallireddy via swift-users
ode (other than the > JavaScript JIT). > > Jordan > > > On Mar 14, 2016, at 4:45 , Ramakrishna Mallireddy via swift-users < > swift-users@swift.org> wrote: > > Initially I got missing module "Swift" then I provided the missing module > and now I am gett