log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Duke Nukem 3D on RISC OS? (News:9)
- New RISC OS bounties announced at Wakefield 2019 (News:)
- Amcog Games Escape from the Arcade reviewed (News:1)
- Wakefield Show 2019 Report (News:5)
- April News Round-up (News:)
- Beebit 0.61 (Games:4)
- Wakefield show 2019 in pIctures (News:3)
- Wakefield 2019 Show Preview (News:)
- R-Comp releases 2 new machines at SW show (News:9)
- My former friend (PP:2)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
Site Search
 
Article archives
The Icon Bar: Programming: Code GCC produces that makes you cry #12684
 
  Code GCC produces that makes you cry #12684
  This is a long thread. Click here to view the threaded list.
 
Simon Willcocks Message #124444, posted by Stoppers at 19:00, 13/2/2019, in reply to message #124443
Member
Posts: 291
I'd mixed up what the parameters meant, so the last value was too large, which meant that the function would have returned null...
  ^[ Log in to reply ]
 
Jeffrey Lee Message #124445, posted by Phlamethrower at 19:08, 13/2/2019, in reply to message #124443
PhlamethrowerHot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff

Posts: 15072
(Those first two instructions are interesting, as well!)
As a guess, I'd say you're looking at an unlinked object file, in which case the instruction at 284 could be a placeholder which will later get patched with a proper value by the linker.

The rest probably only makes sense if I knew what the rest of the code looked like smile
  ^[ Log in to reply ]
 
Simon Willcocks Message #124446, posted by Stoppers at 23:22, 13/2/2019, in reply to message #124445
Member
Posts: 291
I wondered about that, too, but:

built_drivers/memory_management.elf: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, with debug_info, not stripped

Moving slowly on...
  ^[ Log in to reply ]
 
Pages (2): |< < 2

The Icon Bar: Programming: Code GCC produces that makes you cry #12684