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
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*
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
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
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.
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
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
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
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
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
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
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
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
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,
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
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
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
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
> --
> 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
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
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
21 matches
Mail list logo