Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | jacobnavia <jacob@jacob.remcomp.fr> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Syntax error? |
| Date | 2015-04-25 18:03 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <mhgdrc$28e$1@dont-email.me> (permalink) |
| References | <mhg0mq$f25$1@dont-email.me> |
Le 25/04/2015 14:19, Bartc a écrit :
> *(int (*))((char*)sptr+8)=(*(int (*))((char*)x+8)/*(int (*))((char*)y+8));
lcc-win has NO problems to compile that.
.file "d:\lcc\test\expr.c"
.text 64
; 1 void fn(char *sptr, char *x, char *y)
.type fn,function
.align 4
fn:
push %rbp
mov %rsp,%rbp
push %r15
subq $40,%rsp
movq %r8,32(%rbp)
movq %rdx,%r15
movq %rcx,16(%rbp)
; 2 {
; 3 *(int (*))((char*)sptr+8)=
; 4 (
; 5 *(int (*)) ((char*)x+8) / *(int (*)) ((char*)y+8)
; 6 );
; 7 }
movq %rcx,%r11
movslq 8(%r15),%rax
movq %r8,%r10
movslq 8(%r10),%rcx
cdq
idivl %ecx
movl %eax,8(%r11)
_$1:
addq $40,%rsp
pop %r15
leave
ret
_$2:
.size fn,_$2-fn
.globl fn
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Syntax error? Bartc <bc@freeuk.com> - 2015-04-25 13:19 +0100
Re: Syntax error? Richard Damon <Richard@Damon-Family.org> - 2015-04-25 11:07 -0400
Re: Syntax error? jacobnavia <jacob@jacob.remcomp.fr> - 2015-04-25 18:03 +0200
Re: Syntax error? Bartc <bc@freeuk.com> - 2015-04-25 17:26 +0100
Re: Syntax error? jacobnavia <jacob@jacob.remcomp.fr> - 2015-04-25 19:28 +0200
Re: Syntax error? Johannes Bauer <dfnsonfsduifb@gmx.de> - 2015-04-26 11:19 +0200
Re: Syntax error? Bartc <bc@freeuk.com> - 2015-04-26 11:17 +0100
Re: Syntax error? Bartc <bc@freeuk.com> - 2015-04-26 11:36 +0100
Re: Syntax error? Ben Bacarisse <ben.lists@bsb.me.uk> - 2015-04-26 13:40 +0100
Re: Syntax error? Bartc <bc@freeuk.com> - 2015-04-26 19:27 +0100
Re: Syntax error? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-26 12:38 -0700
Re: Syntax error? Bartc <bc@freeuk.com> - 2015-04-26 22:26 +0100
Re: Syntax error? Keith Thompson <kst-u@mib.org> - 2015-04-26 12:41 -0700
Re: Syntax error? Ben Bacarisse <ben.lists@bsb.me.uk> - 2015-04-27 01:53 +0100
Re: Syntax error? Bartc <bc@freeuk.com> - 2015-04-26 13:24 +0100
Re: Syntax error? Tim Rentsch <txr@alumni.caltech.edu> - 2015-04-26 07:01 -0700
Re: Syntax error? Bartc <bc@freeuk.com> - 2015-04-26 19:55 +0100
Re: Syntax error? Robert Wessel <robertwessel2@yahoo.com> - 2015-04-27 02:39 -0500
Re: Syntax error? Tim Rentsch <txr@alumni.caltech.edu> - 2015-04-28 08:34 -0700
csiph-web