> On Dec 3, 2016, at 6:42 PM, Ethin Probst wrote:
>
> @Chris, I'm having trouble understanding your message. Do you mean
> that you hope to implement this soon, or that you don't intend to?
I mean that inline assembly is niche and out of scope for swift 4 stage 1, but
I feel like inline assembly is a very niche idea. Inline assembly is
supported by c and by extension objective-c.
//file.h
void aCFunction();
//file.m
void aCFunction() {
int a=10, b;
asm ("movl %1, %%eax;
movl %%eax, %0;"
:"=r"(b) /* output */
:"r"(a) /* input */
:"%eax" /* clobbered register */
@Chris, I'm having trouble understanding your message. Do you mean
that you hope to implement this soon, or that you don't intend to?
@Félix, no, however I do think it would a good feature to have if you
need to optimize certain lines of code beyond preset optimizer passes.
On 12/3/16, Chris
> On Dec 3, 2016, at 3:12 PM, Ethin Probst via swift-evolution
> wrote:
>
> Hello all,
> My name is Ethin and I am new to this community. However, I certainly
> am no newbie when it comes to software development, and have emailed
> all of you to file a proposal of
Do you have a use case for writing a whole assembly program in a .swift file
rather than in an assembly file?
> Le 3 déc. 2016 à 15:12, Ethin Probst via swift-evolution
> a écrit :
>
> Hello all,
> My name is Ethin and I am new to this community. However, I
Hello all,
My name is Ethin and I am new to this community. However, I certainly
am no newbie when it comes to software development, and have emailed
all of you to file a proposal of inline assembly in Swift. The
assembly language would be within an asm {...} block. The asm keyword
could also take