wmobit
Re:Ask HN: Help with LLVM
on Monday January 05, 2026 @08:10AM (#46498373)
Possibly -ffreestanding will help
Re:Ask HN: Help with LLVM
on Monday January 05, 2026 @08:03AM (#46498316)
The _fltused handling is quite crude: https://github.com/llvm/llvm-project/blob/5cfd02f44a43a2e2a0...
TLDR it's going to emit the reference if it's targeting MSVC and there's any float typed reference. You'd need to do something to avoid it, other than avoiding float types.
Presumably you are compiling for the MSVC ABI. Trying to plug your own runtime that doesn't behave exactly as the MSVC scheme isn't going to just work out of the box. The compiler has to know the details of the ABI you are targeting, if you're doing your own thing the compiler would need to treat that as a separate ABI. I'm not sure there's a triple now that means MSVC-like-freestanding.
The same logic applies on the clang driver side. The ABI expects to link those libraries, so it will.
Re:HipKittens: Fast and Furious AMD Kernels
on Friday November 14, 2025 @06:36PM (#45933471)
I'd go so far as to say it's the exact opposite. It's faster and easier to change the hardware than the software.
Re:Own Constant Folder in C/C++
on Saturday June 22, 2024 @03:56PM (#40761683)
clang does have pragma clang fp to enable a subset of fast math flags within a scope
Re:CodeGen: LLVM wrapper for just-in-time code generation and compilation
on Sunday May 19, 2019 @07:28PM (#19956254)
This couldn't have a worse name. It's already used inside clang, and llvm. Searching "llvm CodeGen" will never find this.
Re:U.S. Supreme Court to hear Apple App Store antitrust dispute
on Sunday November 25, 2018 @03:08PM (#18528729)
Chrome is available on the App Store
Re:An Apple ISA is coming
on Wednesday September 09, 2015 @05:53PM (#10194889)
It's really not. It's barely an abstraction over LLVM IR
Re:Silicon Valley Could Offer a Public Bus Commute That's Quicker Than...
on Sunday November 23, 2014 @01:59AM (#8648043)
I live on El Camino and frequently take the bus. It's a 40 minute walk to the nearest caltrain station
Re:When Keurig fights “coffee pirates,” who loses? Loyal consumers
on Sunday October 12, 2014 @05:49AM (#8444872)
The keurig actually does have tea pods, which produce pretty awful tea
Re:Which GPUs to Get for Deep Learning
on Saturday September 27, 2014 @01:13AM (#8376144)
clBLAS
Re:Which GPUs to Get for Deep Learning
on Friday September 26, 2014 @07:05PM (#8375356)
There is an OpenCL profiler for AMD, and library equivalents for those in clBLAS / clFFT
Re:Which GPUs to Get for Deep Learning
on Friday September 26, 2014 @05:30PM (#8374993)
There isn't really anything fundamentally that would make CUDA faster that OpenCL. There aren't any huge semantic differences between them.
Re:ErLLVM: LLVM backend for high performance Erlang
on Monday March 24, 2014 @06:23PM (#7462102)
No, unfortunately front ends still need to be aware of some of the ABI details of the target to produce the IR for it.
Re:Poll: Do you actually use the product you are working on?
on Sunday January 26, 2014 @08:21PM (#7128106)
I used to use it before working on it was my job.
Re:From a Frat Social Network to a GPU Compiler for Hadoop
on Tuesday November 19, 2013 @05:35PM (#6765002)
But the 64-bit pointer support isn't there yet, so it's not super useful. You can't use it all within the same program
Re:These young SF professionals choose to live in RVs
on Sunday September 01, 2013 @04:57PM (#6312119)
Most (probably nearly all, I've never seen one that doesn't) have bathrooms with showers.
Re:Nimrod: C + Macros + GC
on Sunday August 25, 2013 @04:11PM (#6273489)
Dear everyone, please stop using C as a compile target. Thanks.
Re:Obama to Hold Google+ ‘Hangout’ After State of the Union
on Monday January 23, 2012 @10:36PM (#3503347)
I also think it mostly means the president won't see anybody's penis.
Re:ISO C is increasingly moronic
on Tuesday December 20, 2011 @06:51PM (#3375737)
As if MS will implement C1X. They haven't caught up to the last C standard from 12 years ago
Re:Make your STDERR red
on Tuesday December 13, 2011 @06:01PM (#3349763)
The alloca usage here terrifies me.
Re:Skyim breaking Steam record -- a singleplayer game has 240,000 user...
on Saturday November 12, 2011 @03:53PM (#3228875)
No, it's totally a sine wave.
Re:Show HN: Random Google Street View
on Wednesday November 09, 2011 @10:01AM (#3215664)
Comments on saved ones might be nice. For example, on the one I started on, there appears to be a tiger in Colorado. I have an urge to comment and ask if that is in fact a tiger.
Re:Home experiments to derive the speed of light?
on Thursday October 13, 2011 @11:23PM (#3109790)
You don't use experiments to 'derive' the speed of light. You use Maxwell's equations.
Re:The Unfamiliar (Objective-C & Cocoa)
on Monday September 19, 2011 @05:32PM (#3015275)
Note the 'Automatic' qualifier on reference counting
Re:Why no Steam, Notch?
on Monday August 29, 2011 @02:59PM (#2938348)
Such is impossible under current copyright law
Re:Why no Steam, Notch?
on Monday August 29, 2011 @02:37PM (#2938260)
Saying the GPL is draconian and limits freedom is like saying the 13th amendment limits freedom since it takes away your right to own slaves.
Re:Tiobe: Lua enters the top 10 for the first time in history
on Monday June 06, 2011 @08:29PM (#2627391)
Perhaps the people using JavaScript are the more likely the kinds of people to go asking more questions.
Re:Apple Hires The Guy Who Hacked Together A Better iOS Notifications ...
on Saturday June 04, 2011 @12:42AM (#2618904)
I have a feeling he hasn't really been hired by Apple yet.
Re:Economist's View: "The Mathematics Generation Gap"
on Tuesday May 31, 2011 @11:49AM (#2603036)
I saw nothing about mathematics here; this was all about arithmetic.
Re:C++ at Google: Here Be Dragons
on Monday May 23, 2011 @05:34PM (#2577667)
Google has said before they didn't use Clang and LLVM because of performance issues. GCC is far from dead, and probably never will. Clang generated code is still typically 10-20% slower than GCC. Lots of companies work on GCC, including Google, Intel, AMD, IBM, Red Hat and others.