[riot-notifications] [RIOT] native: document why compiling for a 64 bit cpu is currently not possible (#344)

LudwigOrtmann notifications at github.com
Wed Nov 20 11:55:50 CET 2013


Here is what gcc can find:
```
make[2]: Entering directory '/home/lo/native/RIOT/core'
mutex.c: In function ‘mutex_wait’:
mutex.c:81:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     n.data = (unsigned int) active_thread;
              ^
mutex.c: In function ‘mutex_unlock’:
mutex.c:103:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
             tcb_t *process = (tcb_t*) next->data;
                              ^
sched.c: In function ‘sched_run’:
sched.c:125:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         my_active_thread = (tcb_t *)next.data;
                            ^
msg.c: In function ‘msg_send’:
msg.c:85:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         n.data = (unsigned int) active_thread;
                  ^
msg.c: In function ‘_msg_receive’:
msg.c:254:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         tcb_t *sender = (tcb_t*) node->data;
                         ^
thread.c: In function ‘thread_measure_stack_usage’:
thread.c:113:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     while (*stackp == (unsigned int)stackp) {
                       ^
thread.c:117:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     int space = (unsigned int)stackp - (unsigned int)stack;
                 ^
thread.c:117:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     int space = (unsigned int)stackp - (unsigned int)stack;
                                        ^
thread.c: In function ‘thread_create’:
thread.c:128:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     unsigned int tcb_address = (unsigned int) stack + stacksize;
                                ^
thread.c:140:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     tcb_t *cb = (tcb_t *) tcb_address;
                 ^
thread.c:152:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
             *stackp = (unsigned int)stackp;
                       ^
thread.c:158:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         *stack = (unsigned int)stack;
                  ^
thread.c:194:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     cb->rq_entry.data = (unsigned int) cb;
                         ^
```

```
make[3]: Entering directory '/home/lo/native/RIOT/sys/vtimer'
vtimer.c: In function ‘vtimer_callback’:
vtimer.c:131:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         msg.content.value = (unsigned int) timer->arg;
                             ^
vtimer.c: In function ‘vtimer_set_wakeup’:
vtimer.c:247:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     t->arg = (void *) pid;
              ^
```

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/344#issuecomment-28878619
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20131120/9db46fbe/attachment.html>


More information about the notifications mailing list