Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the primary difference between branch instruction and branch with link instruction? ARM?

From what I read, the branch with link is used to perform subroutine call and the registered link is copied back to PC.

like image 930
夢のの夢 Avatar asked Oct 11 '15 19:10

夢のの夢


1 Answers

Branch with link BL copies the address of the next instruction (after the BL) into the link register. The branch instruction doesn't. BL would be used for a subroutine call, so when you want to return to where you were you can branch back to the link register.

like image 100
Colin Avatar answered Oct 13 '22 04:10

Colin